Skip to content

replace len(x)<=v with len(x)==v - #374

Merged
chris-ramon merged 2 commits into
graphql-go:masterfrom
quasilyte:sloppyLen
Jul 28, 2018
Merged

chris-ramon merged 2 commits into
graphql-go:masterfrom
quasilyte:sloppyLen

Conversation

@quasilyte

Copy link
Copy Markdown
Contributor

Length can't be negative, so use more appropriate operator.

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

Length can't be negative, so use more appropriate operator.

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

coveralls commented Jul 28, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.919% when pulling da5511a on Quasilyte:sloppyLen into 8bad5f4 on graphql-go:master.

@chris-ramon

Copy link
Copy Markdown
Member

LGTM 👍 — thanks a lot @quasilyte!

@chris-ramon
chris-ramon merged commit 657726d into graphql-go:master Jul 28, 2018
@quasilyte
quasilyte deleted the sloppyLen branch July 28, 2018 20:35
@quasilyte

Copy link
Copy Markdown
Contributor Author

@chris-ramon thanks for warm comments. ^^
Really makes these contributing sessions enjoyable.

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