Skip to content

Commit d6faeb8

Browse files
committed
fix: new rules
1 parent 8bacbd3 commit d6faeb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/golinters/goanalysis/runner_loadingpackage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,6 @@ func sizeOfReflectValueTreeBytes(rv reflect.Value, visitedPtrs map[uintptr]struc
492492
case reflect.Invalid:
493493
return 0
494494
default:
495-
panic("unknown rv of type " + fmt.Sprint(rv))
495+
panic("unknown rv of type " + rv.String())
496496
}
497497
}

pkg/result/issue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (i *Issue) Fingerprint() string {
9292
}
9393

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

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

0 commit comments

Comments
 (0)