Skip to content

Commit 2427911

Browse files
committed
refactor(logging): remove unused abs() function
Delete dead code abs() helper in report.go. The standard library math.Abs exists for this purpose and the function was never called.
1 parent 49ec79e commit 2427911

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

internal/logging/report.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,3 @@ func channelName(channels int) string {
239239
return fmt.Sprintf("%d channels", channels)
240240
}
241241
}
242-
243-
// abs returns the absolute value of a float64
244-
func abs(x float64) float64 {
245-
if x < 0 {
246-
return -x
247-
}
248-
return x
249-
}

0 commit comments

Comments
 (0)