8000 colormaps.py: Remove unnecessary check inside of get_palettes by schwehr · Pull Request #2712 · gee-community/geemap · GitHub
[go: up one dir, main page]

Skip to content

colormaps.py: Remove unnecessary check inside of get_palettes#2712

Open
schwehr wants to merge 1 commit intogee-community:masterfrom
schwehr:enumerate-colormaps
Open

colormaps.py: Remove unnecessary check inside of get_palettes#2712
schwehr wants to merge 1 commit intogee-community:masterfrom
schwehr:enumerate-colormaps

Conversation

@schwehr
Copy link
Collaborator
@schwehr schwehr commented Mar 11, 2026

The check if index < len(list_colormaps()) is redundant when using enumerate to iterate over the same list, as the index will always be within bounds.

The check if `index < len(list_colormaps())` is redundant when using
enumerate to iterate over the same list, as the index will always be
within bounds.
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

0