Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Mar 16, 2021
1 parent ffeac8d commit b10688e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/parser/human_readable_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ func TestToHumanReadableFloat(t *testing.T) {
}

func TestToHumanReadablePointer1(t *testing.T) {
var i uint64
i = 2
var i uint64 = 2
output, err := ToHumanReadable(&i)
assert.Nil(t, err)
assert.Equal(t, "2", string(output))
}

func TestToHumanReadablePointer2(t *testing.T) {
var str []string
str = nil
var str []string = nil
output, err := ToHumanReadable(&str)
assert.Nil(t, err)
assert.Equal(t, "", string(output))
Expand Down

0 comments on commit b10688e

Please sign in to comment.