Skip to content

replace len(x)<=0 with len(x)==0#220

Merged
ccojocar merged 1 commit intosecurego:masterfrom
quasilyte:quasilyte/sloppyLen
Jul 30, 2018
Merged

replace len(x)<=0 with len(x)==0#220
ccojocar merged 1 commit intosecurego:masterfrom
quasilyte:quasilyte/sloppyLen

Conversation

@quasilyte
Copy link
Copy Markdown
Contributor

length can't be negative.

Found using https://go-critic.github.io/overview#sloppyLen-ref

Copy link
Copy Markdown
Member

@ccojocar ccojocar left a comment

Choose a reason for hiding this comment

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

LGTM

@ccojocar ccojocar merged commit 7d767b4 into securego:master Jul 30, 2018
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