Simplify the return statement

pkg/controller/certificates/trigger/trigger_controller_test.go:257:12: if block ends with a return statement, so drop this else and outdent its block

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
Richard Wall 2021-05-04 14:57:20 +01:00
parent c15d30742d
commit 6c544dafa0

View File

@ -254,9 +254,8 @@ func Test_controller_ProcessItem(t *testing.T) {
if test.mockShouldReissue == nil {
t.Fatal("no mock set for shouldReissue, but shouldReissue has been called")
return "", "", false
} else {
return test.mockShouldReissue(t)(i)
}
return test.mockShouldReissue(t)(i)
}
// TODO(mael): we should really remove the Certificate field from