Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Nov 13, 2016
1 parent 0c37807 commit 65b7f16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/hanami/assets/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@ def subresource_integrity_algorithms
# @since 0.3.0
# @api private
def subresource_integrity_value(source)
if subresource_integrity
manifest.subresource_integrity_values(
prefix.join(source)
).join(SUBRESOURCE_INTEGRITY_SEPARATOR)
end
return unless subresource_integrity

manifest.subresource_integrity_values(
prefix.join(source)
).join(SUBRESOURCE_INTEGRITY_SEPARATOR)
end

# Load Javascript compressor
Expand Down Expand Up @@ -524,7 +524,7 @@ def reset! # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
def load!
if (fingerprint || subresource_integrity) && manifest_path.exist?
@manifest = Config::Manifest.new(
JSON.load(manifest_path.read),
JSON.parse(manifest_path.read),
manifest_path
)
end
Expand Down

0 comments on commit 65b7f16

Please sign in to comment.