Skip to content

Commit f18beda

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Use String#include? with suggested by Performance/StringInclude cop
ruby/rubygems@fdd3419144
1 parent bb2e4d5 commit f18beda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems/ext/ext_conf_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def self.build(extension, dest_path, results, args = [], lib_dir = nil, extensio
4040
end
4141

4242
ENV["DESTDIR"] = nil
43-
unless RbConfig::CONFIG["MAKE"] =~ /nmake/
43+
unless RbConfig::CONFIG["MAKE"]&.include?("nmake")
4444
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
4545
end
4646

0 commit comments

Comments
 (0)