Skip to content

Commit 11232b2

Browse files
committed
Rubocop safe autocorrections
1 parent 9b0133a commit 11232b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/puppet/parser/functions/parseyaml.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Puppet::Parser::Functions
2222
require 'yaml'
2323

2424
begin
25-
YAML.load(arguments[0]) || arguments[1] # rubocop:disable Security/YAMLLoad : using YAML.safe_load causes the code to break
25+
YAML.load(arguments[0]) || arguments[1] # : using YAML.safe_load causes the code to break
2626
# in ruby 1.9.3 Psych::SyntaxError is a RuntimeException
2727
# this still needs to catch that and work also on rubies that
2828
# do not have Psych available.

lib/puppet/parser/functions/validate_augeas.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module Puppet::Parser::Functions
6767
# Check for syntax
6868
lens = args[1]
6969
aug.transform(
70-
lens: lens,
70+
lens:,
7171
name: 'Validate_augeas',
7272
incl: tmpfile.path,
7373
)

spec/unit/puppet/provider/file_line/ruby_alter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@
172172
name: 'foo',
173173
path: tmpfile,
174174
line: 'inserted = line',
175-
after: after,
176-
match: match,
175+
after:,
176+
match:,
177177
)
178178
end
179179
end

0 commit comments

Comments
 (0)