diff --git a/lib/hotwire/spark/file_watcher.rb b/lib/hotwire/spark/file_watcher.rb index fea9bfee..812b182a 100644 --- a/lib/hotwire/spark/file_watcher.rb +++ b/lib/hotwire/spark/file_watcher.rb @@ -29,9 +29,7 @@ def paths end def only_existing_paths(paths) - paths.select do |path| - path.exist? - end + paths.select(&:exist?) end def process_changed_files(changed_files)