Skip to content

Commit

Permalink
Fixing some more old "Yoda conditionals"
Browse files Browse the repository at this point in the history
  • Loading branch information
Rican7 committed Aug 1, 2021
1 parent bef6c43 commit 466c8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestRetry(t *testing.T) {

err := Retry(action)

if nil != err {
if err != nil {
t.Error("expected a nil error")
}
}
Expand Down Expand Up @@ -71,7 +71,7 @@ func TestRetryRetriesUntilNoErrorReturned(t *testing.T) {

err := Retry(action)

if nil != err {
if err != nil {
t.Error("expected a nil error")
}

Expand Down

0 comments on commit 466c8d7

Please sign in to comment.