Skip to content

Commit

Permalink
Remove redundent conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed May 29, 2024
1 parent 796e0eb commit ae07875
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/completion/completion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ func (tc testCase) check(boshComplete *completion.BoshComplete) {
} else {
Expect(err).ToNot(HaveOccurred())
}
if result == nil {
Expect(result).ToNot(BeNil())
}
Expect(result).ToNot(BeNil())

if tc.wantStartsWith {
for i, wantLine := range tc.wantRes {
Expect(wantLine).To(Equal(result.Lines[i]))
Expand Down

0 comments on commit ae07875

Please sign in to comment.