Fix all rubocop warnings
This commit is contained in:
parent
05e39dc619
commit
bf851133ae
48 changed files with 124 additions and 97 deletions
|
@ -4,6 +4,7 @@ module Webpacker::ManifestExtensions
|
|||
def lookup(name, pack_type = {})
|
||||
asset = super
|
||||
|
||||
# rubocop:disable Style/SingleArgumentDig
|
||||
if pack_type[:with_integrity] && asset.respond_to?(:dig)
|
||||
[asset.dig('src'), asset.dig('integrity')]
|
||||
elsif asset.respond_to?(:dig)
|
||||
|
@ -11,6 +12,7 @@ module Webpacker::ManifestExtensions
|
|||
else
|
||||
asset
|
||||
end
|
||||
# rubocop:enable Style/SingleArgumentDig
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue