File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -518,11 +518,6 @@ Style/IfWithSemicolon:
518
518
Style/ImplicitRuntimeError :
519
519
Enabled : false
520
520
521
- # This cop supports unsafe auto-correction (--auto-correct-all).
522
- Style/InfiniteLoop :
523
- Exclude :
524
- - ' lib/puppet/util/posix.rb'
525
-
526
521
# This cop supports unsafe auto-correction (--auto-correct-all).
527
522
# Configuration parameters: InverseMethods, InverseBlocks.
528
523
Style/InverseMethods :
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def get_groups_list(user)
41
41
user_gid = Puppet ::Etc . getpwnam ( user ) . gid
42
42
ngroups = Puppet ::FFI ::POSIX ::Constants ::MAXIMUM_NUMBER_OF_GROUPS
43
43
44
- while true do
44
+ loop do
45
45
FFI ::MemoryPointer . new ( :int ) do |ngroups_ptr |
46
46
FFI ::MemoryPointer . new ( :uint , ngroups ) do |groups_ptr |
47
47
old_ngroups = ngroups
You can’t perform that action at this time.
0 commit comments