Skip to content

Commit

Permalink
style(logic): fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed May 2, 2023
1 parent 3ac7399 commit b04b56e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions x/logic/predicate/json_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//nolint:gocognit,lll
//nolint:gocognit,lll,nestif
package predicate

import (
Expand Down Expand Up @@ -488,14 +488,8 @@ func TestJsonPrologWithMoreComplexStructBidirectional(t *testing.T) {
So(sols, ShouldNotBeNil)

Convey("and the bindings should be as expected", func() {
var got []types.TermResults
for sols.Next() {
m := types.TermResults{}
err := sols.Scan(m)
So(err, ShouldBeNil)
So(sols.Next(), ShouldEqual, tc.wantSuccess)

got = append(got, m)
}
if tc.wantError != nil {
So(sols.Err(), ShouldNotBeNil)
So(sols.Err().Error(), ShouldEqual, tc.wantError.Error())
Expand Down

0 comments on commit b04b56e

Please sign in to comment.