Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #61

Closed
wants to merge 3 commits into from
Closed

Fix warnings #61

wants to merge 3 commits into from

Conversation

hamoid
Copy link
Member

@hamoid hamoid commented Mar 27, 2020

First attempt at silencing warnings

@@ -201,9 +202,8 @@ class PaletteStudio(
}

fun randomPalette() {
val comparison = palette.colors.toMutableList()
val comparison = mutableListOf(palette.colors)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually suggested by @ricardomatias
Without this the algorithm was sometimes returning the same palette twice in a row

@edwinRNDR edwinRNDR self-assigned this Mar 31, 2020
@edwinRNDR edwinRNDR closed this in d0d096d Apr 9, 2020
@hamoid hamoid deleted the fixWarnings branch May 18, 2020 14:09
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.

2 participants