Skip to content

Conversation

pacrox
Copy link

@pacrox pacrox commented Feb 26, 2023

Inside 'rgbToHsl', the variable 's' was mistakenly re-declared as local inside the if/then/else block. This caused the function to return saturation either as '0' (for b/w rgb values) or as 'nil' (for all the other cases).

The statement (line 26) was commented, but it can be permanently removed.
I propose to do so and merge the branch with the master one.

Inside 'rgbToHsl', the variable 's' was mistakenly re-declared as local inside the if/then/else block.
This caused the function to return saturation either as '0' (for b/w rgb values) or as 'nil' (for all the other cases).

The statement (line 26) was commented, but it can be permanently removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant