Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Sep 19, 2024
1 parent c7783c9 commit 4d8752c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safecast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestNonIntegerFloat(t *testing.T) {
if err == nil {
t.Errorf("expected error")
}
var truncPi float64 = math.Trunc(math.Pi)
truncPi := math.Trunc(math.Pi) // math.Trunc returns a float64
i, err := safecast.Convert[int](truncPi)
if err != nil {
t.Errorf("unexpected error: %v", err)
Expand Down

0 comments on commit 4d8752c

Please sign in to comment.