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

errgroup: remove redundant len check #2354

Merged
merged 1 commit into from
Apr 24, 2024
Merged

errgroup: remove redundant len check #2354

merged 1 commit into from
Apr 24, 2024

Conversation

Juneezee
Copy link
Contributor

A small code refactoring.

len(g.children) > 0 is redundant because range already skips empty slice.

@Juneezee Juneezee requested a review from kataras as a code owner January 18, 2024 15:55
Copy link

@beginningstories beginningstories left a comment

Choose a reason for hiding this comment

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

Can u remove all GitHub restrictions

@Juneezee
Copy link
Contributor Author

@kataras Friendly ping 😄

`len(g.children) > 0` is redundant because `range` already skips empty
slice.

Signed-off-by: Eng Zer Jun <[email protected]>
Copy link
Owner

@kataras kataras left a comment

Choose a reason for hiding this comment

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

LGTM, thanks and sorry for the delay!

@kataras kataras merged commit df7737e into kataras:main Apr 24, 2024
4 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.

3 participants