Skip to content

Commit

Permalink
fix: new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Oct 12, 2021
1 parent 8bacbd3 commit d6faeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/golinters/goanalysis/runner_loadingpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,6 @@ func sizeOfReflectValueTreeBytes(rv reflect.Value, visitedPtrs map[uintptr]struc
case reflect.Invalid:
return 0
default:
panic("unknown rv of type " + fmt.Sprint(rv))
panic("unknown rv of type " + rv.String())
}
}
2 changes: 1 addition & 1 deletion pkg/result/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (i *Issue) Fingerprint() string {
}

hash := md5.New() //nolint:gosec
_, _ = hash.Write([]byte(fmt.Sprintf("%s%s%s", i.Pos.Filename, i.Text, firstLine)))
_, _ = fmt.Fprintf(hash, "%s%s%s", i.Pos.Filename, i.Text, firstLine)

return fmt.Sprintf("%X", hash.Sum(nil))
}

0 comments on commit d6faeb8

Please sign in to comment.