build: Enable gometalinter "gosimple" check, improve build.go

This commit is contained in:
Jakob Borg
2016-12-18 19:57:41 +01:00
committed by Jakob Borg
parent 47f22ff3e5
commit d41c131364
19 changed files with 108 additions and 130 deletions

View File

@@ -22,7 +22,7 @@ func TestSetDefaults(t *testing.T) {
t.Error("int failed")
} else if x.C != 0 {
t.Errorf("float failed")
} else if x.D != false {
} else if x.D {
t.Errorf("bool failed")
}
@@ -36,7 +36,7 @@ func TestSetDefaults(t *testing.T) {
t.Error("int failed")
} else if x.C != 2.2 {
t.Errorf("float failed")
} else if x.D != true {
} else if !x.D {
t.Errorf("bool failed")
}
}