Enable Style/InfiniteLoop Rubocop cop

This commit is contained in:
Grzegorz Bizon 2016-05-23 19:43:58 +02:00
parent bc806831e8
commit 17eaecd6c7
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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