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 gradient AGAIN. #29

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Fix gradient AGAIN. #29

merged 1 commit into from
Jun 18, 2024

Conversation

tangjin0418
Copy link
Contributor

@tangjin0418 tangjin0418 commented Sep 20, 2023

Fix #21

Sorry, I recreated a PR.
I'm still getting used to git.
Please recheck this.
(And if you can tell me what to do next time, that will be nice)

}
colors.put(e.getKey(), e.getValue());
colors.add(new AbstractMap.SimpleEntry<>(e.getKey(), e.getValue()));
Copy link
Owner

Choose a reason for hiding this comment

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

Pretty sure you can just add the entry directly into the colors list instead of creating a new entry as the entry values will never be modified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, shall I solve this?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, please.

@Phoenix616
Copy link
Owner

Thanks for fixing that. You could've just pushed a new commit to the branch which fixed it (or amended your previous commit with the fix and force pushed if you wanted to only have one proper commit on that branch but usually just having a fixing commit is enough as you can squash all changes in the PR into one commit when merging anyways)

@Phoenix616 Phoenix616 merged commit 72bd3ee into Phoenix616:master Jun 18, 2024
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.

Can't use gradient that includes the same color multiple times
2 participants