Skip to content

Commit 76b5820

Browse files
committed
rubocop
1 parent cf87f66 commit 76b5820

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.rubocop_todo.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-10-28 10:14:02 UTC using RuboCop version 1.73.2.
3+
# on 2025-10-28 14:32:01 UTC using RuboCop version 1.73.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
9+
# Offense count: 3
1010
# This cop supports safe autocorrection (--autocorrect).
1111
RSpec/ExpectActual:
1212
Exclude:
@@ -30,6 +30,12 @@ Style/BitwisePredicate:
3030

3131
# Offense count: 2
3232
# This cop supports unsafe autocorrection (--autocorrect-all).
33+
Style/IdenticalConditionalBranches:
34+
Exclude:
35+
- 'lib/puppet/provider/base_dsc_lite/powershell.rb'
36+
37+
# Offense count: 3
38+
# This cop supports unsafe autocorrection (--autocorrect-all).
3339
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
3440
# AllowedMethods: present?, blank?, presence, try, try!
3541
Style/SafeNavigation:

lib/puppet/provider/base_dsc_lite/powershell.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ def deferred_paths(obj, prefix = '')
121121
obj.each_with_index do |v, i|
122122
paths.concat(deferred_paths(v, "#{prefix}[#{i}]"))
123123
end
124-
else
125-
if obj && obj.class && obj.class.name.to_s.include?('Deferred')
126-
paths << (prefix.empty? ? '(root)' : prefix)
127-
end
124+
elsif obj && obj.class && obj.class.name.to_s.include?('Deferred')
125+
paths << (prefix.empty? ? '(root)' : prefix)
128126
end
129127
paths
130128
end

0 commit comments

Comments
 (0)