style: codacy

This commit is contained in:
David Ralph
2021-04-16 12:26:56 +01:00
parent fe4d17eff3
commit 1ac6f418bf
11 changed files with 16 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
const isValidRGBValue = (value) => {
return (typeof (value) === 'number' && Number.isNaN(value) === false && value >= 0 && value <= 255);
}
};
export default function setRGBA(red, green, blue, alpha) {
if (isValidRGBValue(red) && isValidRGBValue(green) && isValidRGBValue(blue)) {