Remove unused memoization in `CustomFilter#expires_in` method (#30117)

pull/30118/head
Matt Jankowski 2024-04-29 08:49:31 -04:00 committed by GitHub
parent f1a4b4e228
commit 924af400da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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 }