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:
518518Style/ImplicitRuntimeError :
519519 Enabled : false
520520
521- # This cop supports unsafe auto-correction (--auto-correct-all).
522- Style/InfiniteLoop :
523- Exclude :
524- - ' lib/puppet/util/posix.rb'
525-
526521# This cop supports unsafe auto-correction (--auto-correct-all).
527522# Configuration parameters: InverseMethods, InverseBlocks.
528523Style/InverseMethods :
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def get_groups_list(user)
4141 user_gid = Puppet ::Etc . getpwnam ( user ) . gid
4242 ngroups = Puppet ::FFI ::POSIX ::Constants ::MAXIMUM_NUMBER_OF_GROUPS
4343
44- while true do
44+ loop do
4545 FFI ::MemoryPointer . new ( :int ) do |ngroups_ptr |
4646 FFI ::MemoryPointer . new ( :uint , ngroups ) do |groups_ptr |
4747 old_ngroups = ngroups
You can’t perform that action at this time.
0 commit comments