From 466c8d7608c8c60b52eeead79cf8656b36b3bddc Mon Sep 17 00:00:00 2001 From: Trevor Suarez Date: Sat, 31 Jul 2021 20:45:29 -0600 Subject: [PATCH] Fixing some more old "Yoda conditionals" --- retry_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retry_test.go b/retry_test.go index b3b886b..12b281b 100644 --- a/retry_test.go +++ b/retry_test.go @@ -12,7 +12,7 @@ func TestRetry(t *testing.T) { err := Retry(action) - if nil != err { + if err != nil { t.Error("expected a nil error") } } @@ -71,7 +71,7 @@ func TestRetryRetriesUntilNoErrorReturned(t *testing.T) { err := Retry(action) - if nil != err { + if err != nil { t.Error("expected a nil error") }