Skip to content

Replace for loop with counter by range#149

Merged
orgrim merged 2 commits intoorgrim:masterfrom
l00ptr:misc/code-cleanup
Apr 24, 2025
Merged

Replace for loop with counter by range#149
orgrim merged 2 commits intoorgrim:masterfrom
l00ptr:misc/code-cleanup

Conversation

@l00ptr
Copy link
Collaborator

@l00ptr l00ptr commented Apr 23, 2025

When possible, use range instead of for loop with increment. This is a bit easier to read. This commits also removes the unnecessary id from dumper().

Also use slice.Contains() instead of looping over a slice to search an item.

l00ptr added 2 commits April 23, 2025 07:28
When possible, use range instead of for loop with increment. This is a
bit easier to read. This commits also removes the unnecessary id from
dumper().
@orgrim orgrim merged commit 7573c48 into orgrim:master Apr 24, 2025
9 checks passed
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