Skip to content

Commit

Permalink
gps: simplify boolean expression
Browse files Browse the repository at this point in the history
Signed-off-by: Iskander Sharipov <[email protected]>
  • Loading branch information
quasilyte authored and kevinburke committed Feb 17, 2019
1 parent 5ae9d8b commit 14bef7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gps/solve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func fixtureSolveSimpleChecks(fix specfix, soln Solution, err error, t *testing.
if err != nil {
if fixfail == nil {
t.Errorf("Solve failed unexpectedly:\n%s", err)
} else if !(fixfail.Error() == err.Error()) {
} else if fixfail.Error() != err.Error() {
// TODO(sdboyer) reflect.DeepEqual works for now, but once we start
// modeling more complex cases, this should probably become more robust
t.Errorf("Failure mismatch:\n\t(GOT): %s\n\t(WNT): %s", err, fixfail)
Expand Down

0 comments on commit 14bef7d

Please sign in to comment.