Skip to content

Commit

Permalink
chore: staticcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jul 15, 2023
1 parent 5de44d7 commit 25825c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions node/basicnode/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ func TestListAmendingBuilderCopiedNode(t *testing.T) {
appendElems, err = qp.BuildList(basicnode.Prototype.List, 1, func(am datamodel.ListAssembler) {
qp.ListEntry(am, qp.Node(nestedList))
})
if err != nil {
t.Fatal(err)
}
err = amender.Append(appendElems)
if err != nil {
t.Fatal(err)
Expand Down
4 changes: 2 additions & 2 deletions node/basicnode/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func TestMapAmendingBuilderNewNode(t *testing.T) {
qt.Assert(t, actual, qt.Equals, expect)

// Should not find "cat"
r, err = amender.Get("cat")
_, err = amender.Get("cat")
if _, notFoundErr := err.(datamodel.ErrNotExists); !notFoundErr {
t.Fatal(err)
}
Expand Down Expand Up @@ -542,7 +542,7 @@ func TestMapAmendingBuilderExistingNode(t *testing.T) {
qt.Assert(t, actual, qt.Equals, expect)

// Should not find "cat"
r, err = amender.Get("cat")
_, err = amender.Get("cat")
if _, notFoundErr := err.(datamodel.ErrNotExists); !notFoundErr {
t.Fatal(err)
}
Expand Down

0 comments on commit 25825c1

Please sign in to comment.