Skip to content

Commit

Permalink
Correct Style/RedundantFilterChain lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Aug 11, 2023
1 parent fd6eade commit 135d7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace :dev do
ENV['PATH'].split(':').each do |path|
next unless File.exist?(path)

found = !Find.find(path).select { |f| f.match(/\bsearchd$/) && File.executable?(f) }.empty?
found = !Find.find(path).none? { |f| f.match(/\bsearchd$/) && File.executable?(f) }
break if found
end

Expand Down

0 comments on commit 135d7db

Please sign in to comment.