Remove redundant else blocks

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2019-01-06 14:39:10 +05:30
parent 0e4d11b0fb
commit 546cafabdc
4 changed files with 23 additions and 31 deletions

View File

@@ -111,9 +111,9 @@ func TestGetSecretReference(t *testing.T) {
if err != nil {
if tc.expectErr {
return
} else {
t.Fatalf("Did not expect error but got: %v", err)
}
t.Fatalf("Did not expect error but got: %v", err)
} else {
if tc.expectErr {
t.Fatalf("Expected error but got none")