Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 14bef7d

Browse files
quasilytekevinburke
authored andcommitted
gps: simplify boolean expression
Signed-off-by: Iskander Sharipov <[email protected]>
1 parent 5ae9d8b commit 14bef7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gps/solve_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func fixtureSolveSimpleChecks(fix specfix, soln Solution, err error, t *testing.
150150
if err != nil {
151151
if fixfail == nil {
152152
t.Errorf("Solve failed unexpectedly:\n%s", err)
153-
} else if !(fixfail.Error() == err.Error()) {
153+
} else if fixfail.Error() != err.Error() {
154154
// TODO(sdboyer) reflect.DeepEqual works for now, but once we start
155155
// modeling more complex cases, this should probably become more robust
156156
t.Errorf("Failure mismatch:\n\t(GOT): %s\n\t(WNT): %s", err, fixfail)

0 commit comments

Comments
 (0)