Skip to content

Commit 56b83d5

Browse files
committed
Don't use short argument name
1 parent df16e5f commit 56b83d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/stream-chat/util.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def self.get_sort_fields(sort)
1616
end
1717

1818
# Normalizes a timestamp to RFC 3339 / ISO 8601 string format.
19-
def self.normalize_timestamp(t)
20-
case t
21-
when DateTime then t.rfc3339
22-
when Time then t.iso8601
23-
else t
19+
def self.normalize_timestamp(timestamp)
20+
case timestamp
21+
when DateTime then timestamp.rfc3339
22+
when Time then timestamp.iso8601
23+
else timestamp
2424
end
2525
end
2626
end

0 commit comments

Comments
 (0)