lib/tapioca/dsl/pipeline.rb in tapioca-0.12.0 vs lib/tapioca/dsl/pipeline.rb in tapioca-0.13.0
- old
+ new
@@ -59,10 +59,10 @@
constants_to_process = gather_constants(requested_constants, requested_paths)
.select { |c| Module === c } # Filter value constants out
.sort_by! { |c| T.must(Runtime::Reflection.name_of(c)) }
# It's OK if there are no constants to process if we received a valid file/path.
- if constants_to_process.empty? && requested_paths.select { |p| File.exist?(p) }.empty?
+ if constants_to_process.empty? && requested_paths.none? { |p| File.exist?(p) }
report_error(<<~ERROR)
No classes/modules can be matched for RBI generation.
Please check that the requested classes/modules include processable DSL methods.
ERROR
end