Activate lint gosimple.

This commit is contained in:
jregan
2019-11-14 20:56:39 -08:00
parent 85d34531a2
commit 3da0afdda0
11 changed files with 94 additions and 63 deletions

View File

@@ -126,7 +126,7 @@ func TestWriteFile(t *testing.T) {
if err != nil {
t.Fatalf("expected read to work: %v", err)
}
if bytes.Compare(c, content) != 0 {
if !bytes.Equal(c, content) {
t.Fatalf("incorrect content: %v", content)
}
}