Skip to content

Commit

Permalink
Remove unused memoization in CustomFilter#expires_in method (#30117)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Apr 29, 2024
1 parent f1a4b4e commit 924af40
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/custom_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class CustomFilter < ApplicationRecord
after_commit :invalidate_cache!

def expires_in
return @expires_in if defined?(@expires_in)
return nil if expires_at.nil?

EXPIRATION_DURATIONS.find { |expires_in| expires_in.from_now >= expires_at }
Expand Down

0 comments on commit 924af40

Please sign in to comment.