Skip to content

Commit

Permalink
More compact
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 19, 2024
1 parent 5f03fec commit b06a7e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/hotwire/spark/file_watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b06a7e6

Please sign in to comment.