Skip to content

Commit 4c140da

Browse files
committed
fix rubocop offenses
1 parent d7c2df1 commit 4c140da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/init.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def set(setting, section, value)
4949
_stdout, stderr, status = Open3.capture3(*cmd)
5050
raise Puppet::Error, stderr if status != 0
5151

52-
{ status: value, setting: setting, section: section }
52+
{ status: value, setting:, section: }
5353
end
5454

5555
def get(setting, section, _value)
@@ -59,7 +59,7 @@ def get(setting, section, _value)
5959
stdout, stderr, status = Open3.capture3(*cmd)
6060
raise Puppet::Error, stderr if status != 0
6161

62-
{ status: stdout.strip, setting: setting, section: section }
62+
{ status: stdout.strip, setting:, section: }
6363
end
6464

6565
def delete(setting, section, _value)
@@ -69,7 +69,7 @@ def delete(setting, section, _value)
6969
stdout, stderr, status = Open3.capture3(*cmd)
7070
raise Puppet::Error, stderr if status != 0
7171

72-
{ status: stdout.strip, setting: setting, section: section }
72+
{ status: stdout.strip, setting:, section: }
7373
end
7474

7575
params = JSON.parse($stdin.read)

0 commit comments

Comments
 (0)