style(rubocop): Naming/MemoizedInstanceVariableName

This commit is contained in:
Adam Cooke
2024-02-12 09:40:34 +00:00
parent 00a02f2655
commit 9563f30c96
6 changed files with 26 additions and 26 deletions
+2
View File
@@ -455,6 +455,7 @@ class UnqueueMessageJob < Postal::Job
private
# rubocop:disable Naming/MemoizedInstanceVariableName
def cached_sender(klass, *args)
@sender ||= begin
sender = klass.new(*args)
@@ -462,5 +463,6 @@ class UnqueueMessageJob < Postal::Job
sender
end
end
# rubocop:enable Naming/MemoizedInstanceVariableName
end