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:
parent
c15d30742d
commit
6c544dafa0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user