[logaling-commit] logaling/logaling-command [master] Use 'loop' instead of 'while true'

Back to archive index

null+****@clear***** null+****@clear*****
Tue Mar 13 17:34:29 JST 2012


SHIMADA Koji	2012-03-13 17:34:29 +0900 (Tue, 13 Mar 2012)

  New Revision: 22d3a57a71d377276593053b5632472423d425f1

  Log:
    Use 'loop' instead of 'while true'

  Modified files:
    lib/logaling/command/application.rb

  Modified: lib/logaling/command/application.rb (+1 -1)
===================================================================
--- lib/logaling/command/application.rb    2012-03-13 17:17:57 +0900 (5011071)
+++ lib/logaling/command/application.rb    2012-03-13 17:34:29 +0900 (7761a90)
@@ -311,7 +311,7 @@ module Logaling::Command
     def find_dotfile
       dir = Dir.pwd
       searched_path = []
-      while true
+      loop do
         path = File.join(dir, '.logaling')
         if File.exist?(path)
           return path




More information about the logaling-commit mailing list
Back to archive index