Skip to content

Commit

Permalink
roachtest: remove superfluous nil check to make nogo happy
Browse files Browse the repository at this point in the history
A recent change to roachtest was causing nogo to complain:

```
compilepkg: nogo: errors found by nogo during build-time code analysis:
pkg/cmd/roachtest/test_runner.go:369:11: tautological condition: non-nil != nil (nilness)
```

Release note: None
  • Loading branch information
michae2 committed Jun 17, 2022
1 parent 57c79ae commit 00390b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func defaultClusterAllocator(
if err == nil {
return c, nil
}
if err != nil && !errors.Is(err, errClusterNotFound) {
if !errors.Is(err, errClusterNotFound) {
return nil, err
}
// Fall through to create new cluster with name override.
Expand Down

0 comments on commit 00390b2

Please sign in to comment.