Fix lint errors (#190)

* use increment and decrement operators.

* remove unnecessary else branches.

* fix receiver names.

* remove omittable code.

* fix dot imports.
This commit is contained in:
Thomas Corbière
2018-04-03 12:23:28 +02:00
committed by Anton Kaliaev
parent a557bb4d0b
commit ee67e34519
27 changed files with 121 additions and 145 deletions

View File

@ -33,13 +33,13 @@ func TestParallel(t *testing.T) {
taskResult, ok := trs.LatestResult(i)
if !ok {
assert.Fail(t, "Task #%v did not complete.", i)
failedTasks += 1
failedTasks++
} else if taskResult.Error != nil {
assert.Fail(t, "Task should not have errored but got %v", taskResult.Error)
failedTasks += 1
failedTasks++
} else if !assert.Equal(t, -1*i, taskResult.Value.(int)) {
assert.Fail(t, "Task should have returned %v but got %v", -1*i, taskResult.Value.(int))
failedTasks += 1
failedTasks++
} else {
// Good!
}