alexcesaro / statsd

An efficient Statsd Go client.
MIT License
301 stars 79 forks source link

uints can never be negative #20

Closed vaskoz closed 6 years ago

vaskoz commented 7 years ago

No need for this code in the "isNegative" function. Running staticcheck finds this issue.

statsd [master u=]: staticcheck ./...
conn.go:170:10: unsigned values are never < 0 (SA4003)
conn.go:174:10: unsigned values are never < 0 (SA4003)
conn.go:178:10: unsigned values are never < 0 (SA4003)
conn.go:182:10: unsigned values are never < 0 (SA4003)
conn.go:186:10: unsigned values are never < 0 (SA4003)