Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
reeganviljoen committed Oct 15, 2024
1 parent 2b92128 commit 2b50b27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/view_component/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ def config
#
# @return [String]
def cache_key
if defined?(__vc_cache_args)
@vc_cache_key = Digest::MD5.hexdigest(
@vc_cache_key = if defined?(__vc_cache_args)
Digest::MD5.hexdigest(
__vc_cache_args.map { |method| send(method) }.join("-")
)
else
@vc_cache_key = nil
end
end

Expand Down

0 comments on commit 2b50b27

Please sign in to comment.