You've already forked dynamic-badges-action
✨ Apply clang-format
This commit is contained in:
6
index.js
6
index.js
@@ -48,14 +48,14 @@ try {
|
|||||||
hue = Math.floor((max - val) / (max - min) * 120);
|
hue = Math.floor((max - val) / (max - min) * 120);
|
||||||
}
|
}
|
||||||
let sat = 100;
|
let sat = 100;
|
||||||
if(colorRangeSaturation != '') {
|
if (colorRangeSaturation != '') {
|
||||||
sat = colorRangeSaturation;
|
sat = colorRangeSaturation;
|
||||||
}
|
}
|
||||||
let lig = 40;
|
let lig = 40;
|
||||||
if(colorRangeLightness != '') {
|
if (colorRangeLightness != '') {
|
||||||
lig = colorRangeLightness;
|
lig = colorRangeLightness;
|
||||||
}
|
}
|
||||||
content.color = "hsl(" + hue + ", " + sat + "%, " + lig + "%)";
|
content.color = 'hsl(' + hue + ', ' + sat + '%, ' + lig + '%)';
|
||||||
} else if (color != '') {
|
} else if (color != '') {
|
||||||
content.color = color;
|
content.color = color;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user