Skip to content

Commit 250b2d9

Browse files
cli: Check if patches are empty before warning about local+patches
1 parent 60ee488 commit 250b2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_wasm/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def compute_build_source(options)
189189
if File.directory?(src_name)
190190
# Treat as a local source if the given name is a source directory.
191191
RubyWasm.logger.debug "Using local source: #{src_name}"
192-
if options[:patches]
192+
if options[:patches].any?
193193
RubyWasm.logger.warn "Patches specified through --patch are ignored for local sources"
194194
end
195195
# @type var local_source: RubyWasm::Packager::build_source_local

0 commit comments

Comments
 (0)