strconv: redundant type conversion to int #38682
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Linux, amd64
go env
OutputWhat did you see?
From strconv.ParseInt() line 206:
Redundant type conversion to int. We can just do this:
IntSize is already int (from line 52):
My suggestion works for both 32bit and 64bit platforms.
The text was updated successfully, but these errors were encountered: