From b04b56ece4065fcd35cc7fb11d55cbae45e6da11 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Tue, 2 May 2023 09:51:49 +0200 Subject: [PATCH] style(logic): fix linter --- x/logic/predicate/json_test.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/x/logic/predicate/json_test.go b/x/logic/predicate/json_test.go index b7c88dd6..5d8f7c4a 100644 --- a/x/logic/predicate/json_test.go +++ b/x/logic/predicate/json_test.go @@ -1,4 +1,4 @@ -//nolint:gocognit,lll +//nolint:gocognit,lll,nestif package predicate import ( @@ -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())