Skip to content

Commit

Permalink
Remove present?
Browse files Browse the repository at this point in the history
  • Loading branch information
nzwsch committed Dec 23, 2023
1 parent d6e2395 commit 3328dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kredis/types/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def prepend(*elements)
return if elements.flatten.empty?

lpush types_to_strings(elements, typed)
expire_in expires_in if expires_in.present?
expire_in expires_in if expires_in
elements
end

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

rpush types_to_strings(elements, typed)
expire_in expires_in if expires_in.present?
expire_in expires_in if expires_in
elements
end
alias << append
Expand Down

0 comments on commit 3328dda

Please sign in to comment.