From 3dd7c22d76c72253cc425281fa65dc2097a19c3f Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 18 Apr 2022 13:09:18 +0200 Subject: [PATCH] :sparkles: Apply clang-format --- index.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/index.js b/index.js index da92642..64e048e 100644 --- a/index.js +++ b/index.js @@ -14,22 +14,22 @@ try { }; // Get all optional attributes and add them to the content object if given. - const labelColor = core.getInput('labelColor'); - const color = core.getInput('color'); - const isError = core.getInput('isError'); - const namedLogo = core.getInput('namedLogo'); - const logoSvg = core.getInput('logoSvg'); - const logoColor = core.getInput('logoColor'); - const logoWidth = core.getInput('logoWidth'); - const logoPosition = core.getInput('logoPosition'); - const style = core.getInput('style'); - const cacheSeconds = core.getInput('cacheSeconds'); - const valColorRange = core.getInput('valColorRange'); - const minColorRange = core.getInput('minColorRange'); - const maxColorRange = core.getInput('maxColorRange'); - const invertColorRange = core.getInput('invertColorRange'); + const labelColor = core.getInput('labelColor'); + const color = core.getInput('color'); + const isError = core.getInput('isError'); + const namedLogo = core.getInput('namedLogo'); + const logoSvg = core.getInput('logoSvg'); + const logoColor = core.getInput('logoColor'); + const logoWidth = core.getInput('logoWidth'); + const logoPosition = core.getInput('logoPosition'); + const style = core.getInput('style'); + const cacheSeconds = core.getInput('cacheSeconds'); + const valColorRange = core.getInput('valColorRange'); + const minColorRange = core.getInput('minColorRange'); + const maxColorRange = core.getInput('maxColorRange'); + const invertColorRange = core.getInput('invertColorRange'); const colorRangeSaturation = core.getInput('colorRangeSaturation'); - const colorRangeLightness = core.getInput('colorRangeLightness'); + const colorRangeLightness = core.getInput('colorRangeLightness'); if (labelColor != '') { content.labelColor = labelColor; @@ -48,14 +48,14 @@ try { hue = Math.floor((max - val) / (max - min) * 120); } let sat = 100; - if(colorRangeSaturation != '') { + if (colorRangeSaturation != '') { sat = colorRangeSaturation; - } + } let lig = 40; - if(colorRangeLightness != '') { + if (colorRangeLightness != '') { lig = colorRangeLightness; } - content.color = "hsl(" + hue + ", " + sat + "%, " + lig + "%)"; + content.color = 'hsl(' + hue + ', ' + sat + '%, ' + lig + '%)'; } else if (color != '') { content.color = color; }