Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 24, 2020
1 parent 634dd27 commit 6dcaacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/functions/extlib/cache_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def cache_data(namespace, name, initial_data)
cache = File.join(cache_dir, name)

if File.exist? cache
YAML.load(File.read(cache))
YAML.safe_load(File.read(cache))
else
FileUtils.mkdir_p(cache_dir)
File.open(cache, 'w', 0o600) do |c|
Expand Down

0 comments on commit 6dcaacc

Please sign in to comment.