Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Oct 24, 2024
1 parent 595a3f0 commit 792c9f6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/active_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@ def from_env(env)
end
# rubocop:enable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity

# rubocop:disable Security/YAMLLoad
def load_yaml_file(file)
YAML.load(ERB.new(File.read(file)).result, aliases: true).to_hash
rescue ArgumentError
YAML.load(ERB.new(File.read(file)).result).to_hash
end
# rubocop:enable Security/YAMLLoad

private

Expand Down

0 comments on commit 792c9f6

Please sign in to comment.