Merge pull request #56 from bltavares/master

Changed some loops to positive statements
This commit is contained in:
Rémy Coutable 2011-05-05 23:40:41 -07:00
commit 815a81dd54
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ module Guard
def watch_change def watch_change
@watch_change = true @watch_change = true
while !@stop until @stop
if Config::CONFIG['build'] =~ /java/ || IO.select([inotify.to_io], [], [], latency) if Config::CONFIG['build'] =~ /java/ || IO.select([inotify.to_io], [], [], latency)
break if @stop break if @stop

View File

@ -23,7 +23,7 @@ module Guard
private private
def watch_change def watch_change
while !@stop until @stop
start = Time.now.to_f start = Time.now.to_f
files = modified_files([Dir.pwd + '/'], :all => true) files = modified_files([Dir.pwd + '/'], :all => true)
update_last_event update_last_event