Skip to content

Remove unneeded nil check before ranging over slice#2900

Merged
roidelapluie merged 1 commit intomainfrom
remove-unneeded-nil-check
May 2, 2022
Merged

Remove unneeded nil check before ranging over slice#2900
roidelapluie merged 1 commit intomainfrom
remove-unneeded-nil-check

Conversation

@juliusv
Copy link
Member

@juliusv juliusv commented Apr 29, 2022

Ranging over a nil slice is just a noop as well.

Signed-off-by: Julius Volz julius.volz@gmail.com

Copy link
Member

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@gotjosh
Copy link
Member

gotjosh commented May 2, 2022

Please rebase once #2904 is merged, to make sure the CI behaves.

Ranging over a nil slice is just a noop as well.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
@juliusv juliusv force-pushed the remove-unneeded-nil-check branch from add9ff1 to 6849edc Compare May 2, 2022 14:07
@juliusv
Copy link
Member Author

juliusv commented May 2, 2022

Rebased, thanks.

@roidelapluie
Copy link
Member

Thanks

@roidelapluie roidelapluie merged commit 710588f into main May 2, 2022
@roidelapluie roidelapluie deleted the remove-unneeded-nil-check branch May 2, 2022 14:29
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Dec 13, 2022
Ranging over a nil slice is just a noop as well.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
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