Fix lint errors (#190)

* use increment and decrement operators.

* remove unnecessary else branches.

* fix receiver names.

* remove omittable code.

* fix dot imports.
This commit is contained in:
Thomas Corbière
2018-04-03 12:23:28 +02:00
committed by Anton Kaliaev
parent a557bb4d0b
commit ee67e34519
27 changed files with 121 additions and 145 deletions

View File

@@ -129,7 +129,6 @@ func bz(s string) []byte {
func nonNilBytes(bz []byte) []byte {
if bz == nil {
return []byte{}
} else {
return bz
}
return bz
}