linter: add metalinter to Makefile & apply some fixes

This commit is contained in:
Zach Ramsay
2017-09-22 13:31:01 -04:00
parent 0418d32276
commit fe66a683bc
13 changed files with 65 additions and 131 deletions

View File

@ -119,8 +119,8 @@ func TestCheckInvalidLists(t *testing.T) {
w, err := codec.BytesToWords(data)
if tc.valid {
assert.Nil(err, "%d: %+v", i, err)
b, err := codec.WordsToBytes(w)
assert.Nil(err, "%d: %+v", i, err)
b, err1 := codec.WordsToBytes(w)
assert.Nil(err1, "%d: %+v", i, err1)
assert.Equal(data, b)
} else {
assert.NotNil(err, "%d", i)