mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 03:26:07 +10:00
Enable Style/InfiniteLoop Rubocop cop
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ Style/IndentHash:
|
||||
|
||||
# Use Kernel#loop for infinite loops.
|
||||
Style/InfiniteLoop:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
# Use the new lambda literal syntax for single-line blocks.
|
||||
Style/Lambda:
|
||||
|
||||
@@ -253,7 +253,7 @@ module Network
|
||||
leaves = []
|
||||
leaves.push(commit) if commit.space.zero?
|
||||
|
||||
while true
|
||||
loop do
|
||||
return leaves if commit.parents(@map).count.zero?
|
||||
|
||||
commit = commit.parents(@map).first
|
||||
|
||||
Reference in New Issue
Block a user