lint: fix gosimple/S1004 errors

This commit is contained in:
Ondřej Budai 2020-02-28 15:24:57 +01:00 committed by Tom Gundersen
parent 1937fc07af
commit 1676cf58da
4 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ func TestSource_UnmarshalJSON(t *testing.T) {
if err != nil {
t.Errorf("Could not marshal source: %v", err)
}
if bytes.Compare(gotBytes, tt.args.data) != 0 {
if !bytes.Equal(gotBytes, tt.args.data) {
t.Errorf("Expected '%v', got '%v'", string(tt.args.data), string(gotBytes))
}
if !reflect.DeepEqual(&gotSources, sources) {