Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Jul 12, 2019
1 parent 1df3bb6 commit 0bdc053
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@
end

if File.exist?(product_override_path)
if File.exist?(product_yaml_path)
result = YAML.load_file(product_yaml_path).merge(YAML.load_file(product_override_path))
else
result = YAML.load_file(product_override_path)
end
result = if File.exist?(product_yaml_path)
YAML.load_file(product_yaml_path).merge(YAML.load_file(product_override_path))
else
YAML.load_file(product_override_path)
end
product_yaml = result.to_yaml
else
product_yaml = File.read(product_yaml_path)
Expand Down

0 comments on commit 0bdc053

Please sign in to comment.