Skip to content

Commit fa916f1

Browse files
committed
Fix pluralization for 0
0 --> plural instead of singular
1 parent 414133d commit fa916f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def default_tags(self):
105105

106106
@staticmethod
107107
def pluralize(number, noun):
108-
if number <= 1:
108+
if number == 1:
109109
return "{0} {1}".format(number, noun)
110110

111111
return "{0} {1}s".format(number, noun)

0 commit comments

Comments
 (0)