Skip to content

Commit ca5d561

Browse files
nzwschheka1024
authored andcommitted
Remove present?
1 parent f4bc157 commit ca5d561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/kredis/types/list.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ def prepend(*elements)
2020
return if elements.flatten.empty?
2121

2222
lpush types_to_strings(elements, typed)
23-
expire_in expires_in if expires_in.present?
23+
expire_in expires_in if expires_in
2424
elements
2525
end
2626

2727
def append(*elements)
2828
return if elements.flatten.empty?
2929

3030
rpush types_to_strings(elements, typed)
31-
expire_in expires_in if expires_in.present?
31+
expire_in expires_in if expires_in
3232
elements
3333
end
3434
alias << append

0 commit comments

Comments
 (0)