Skip to content

Commit

Permalink
PR: Fix the linter error after bumping to golang v1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Feb 17, 2025
1 parent 03c7616 commit 0c4a1cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ func (ucid *UniqueCid) Validate(s *state, actualValue any, msgAndArgs ...any) {

if isNew {
require.IsType(s.t, "", actualValue)
value, ok := actualValue.(string)
if !ok {
require.Fail(s.t, "UniqueCid actualValue string cast failed")
}

cid, err := cid.Decode(actualValue.(string))
cid, err := cid.Decode(value)
if err != nil {
require.NoError(s.t, err)
}
Expand Down

0 comments on commit 0c4a1cb

Please sign in to comment.