Added gosimple

- Get gosimple package
- Updated staticcheck's URL
- Moved build and above checks in `before_script` section to fail fast
- Fixed reports from gosimple
This commit is contained in:
Ivan Kozlovic
2017-01-25 13:30:11 -07:00
parent 0d45f49d90
commit 1fb9f211ca
3 changed files with 7 additions and 7 deletions

View File

@@ -308,7 +308,7 @@ func TestWriteDeadline(t *testing.T) {
t.Fatalf("Error on publish: %v", err)
}
}
dur := time.Now().Sub(start)
dur := time.Since(start)
// user more than the write deadline to account for calls
// overhead, running with -race, etc...
if dur > 100*time.Millisecond {

View File

@@ -636,8 +636,5 @@ func matchLiteral(literal, subject string) bool {
li++
}
// Make sure we have processed all of the literal's chars..
if li < ll {
return false
}
return true
return li >= ll
}