Skip to content

Commit e35db3b

Browse files
committed
Prefer loop to literal true in a condition
1 parent 30b766f commit e35db3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/shell/basic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def file_collision(destination)
232232
return true if @always_force
233233
options = block_given? ? "[Ynaqdh]" : "[Ynaqh]"
234234

235-
while true
235+
loop do
236236
answer = ask %[Overwrite #{destination}? (enter "h" for help) #{options}]
237237

238238
case answer

0 commit comments

Comments
 (0)