Skip to content

Commit ce71e94

Browse files
jordanbreen28jordanbreen28
authored andcommitted
(CONT-794) - Correct Layout/EmptyLineAfterGuardClause
1 parent af1ec6c commit ce71e94

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
# This configuration was generated by
2-
# `rubocop --auto-gen-config`
3-
# on 2023-04-21 10:54:23 UTC using RuboCop version 1.48.1.
4-
# The point is for the user to remove these configuration records
5-
# one by one as the offenses are removed from the code base.
6-
# Note that changes in the inspected code, or installation of new
7-
# versions of RuboCop, may require this file to be generated again.
81

9-
# Offense count: 4
10-
# This cop supports safe autocorrection (--autocorrect).
11-
Layout/EmptyLineAfterGuardClause:
12-
Exclude:
13-
- 'tasks/init.rb'
142

153
# Offense count: 1
164
# Configuration parameters: AllowComments.

tasks/init.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def set(setting, section, value)
4848
cmd += [setting, value]
4949
_stdout, stderr, status = Open3.capture3(*cmd)
5050
raise Puppet::Error, stderr if status != 0
51+
5152
{ status: value, setting: setting, section: section }
5253
end
5354

@@ -57,6 +58,7 @@ def get(setting, section, _value)
5758
cmd += [setting]
5859
stdout, stderr, status = Open3.capture3(*cmd)
5960
raise Puppet::Error, stderr if status != 0
61+
6062
{ status: stdout.strip, setting: setting, section: section }
6163
end
6264

@@ -66,6 +68,7 @@ def delete(setting, section, _value)
6668
cmd += [setting]
6769
stdout, stderr, status = Open3.capture3(*cmd)
6870
raise Puppet::Error, stderr if status != 0
71+
6972
{ status: stdout.strip, setting: setting, section: section }
7073
end
7174

@@ -83,6 +86,7 @@ def delete(setting, section, _value)
8386
delete(setting, section, value)
8487
else
8588
raise Puppet::Error, 'You must pass a value argument' if value.nil?
89+
8690
set(setting, section, value)
8791
end
8892
puts result.to_json

0 commit comments

Comments
 (0)