Add missing block variable

This commit is contained in:
Paul van Tilburg 2018-06-22 20:09:09 +02:00
parent 712b17c308
commit 12cccdde4c
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ notifier = INotify::Notifier.new
dirs = files.map { |file| File.dirname(file) }
dirs.each do |dir|
# Set up a watch per directory
notifier.watch(dir, :close_write) do
notifier.watch(dir, :close_write) do |ev|
puts "I: file #{ev.name} modified, compiling #{infile}..."
compile(infile, mode)
reload(infile, mode)