Merge pull request #56 from bltavares/master
Changed some loops to positive statements
This commit is contained in:
commit
815a81dd54
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user