From b06a7e6b580dcb35d43998d04e1304e3a5caba0e Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 19 Dec 2024 11:43:34 +0100 Subject: [PATCH] More compact --- lib/hotwire/spark/file_watcher.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)