Skip to content

Commit

Permalink
fix pluralize
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Oct 4, 2023
1 parent 6d0435f commit 00cb6aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/VahterBanBot/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ let prependUsername (s: string) =
s
else "@" + s

let pluralize (n: float) (s: string) =
if n < 2.0 then
""
else
"s"
let pluralize n =
if n < 2.0 then "" else "s"

let timeSpanAsHumanReadable (ts: TimeSpan) =
let totalSeconds = ts.TotalSeconds
Expand Down

0 comments on commit 00cb6aa

Please sign in to comment.