summaryrefslogtreecommitdiff
path: root/lib/rubygems/ext/builder.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:55:04 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commitbf69d1fc5d73aab8e0b69e0389ab5131f3d40223 (patch)
tree12bbfe740d1e11bebd412d168156594557a9b7c3 /lib/rubygems/ext/builder.rb
parentf4b073ef7ad959c43b7d14acad2df49a5d056874 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/OrAssignment
https://github.com/rubygems/rubygems/commit/965fc82cfd
Diffstat (limited to 'lib/rubygems/ext/builder.rb')
-rw-r--r--lib/rubygems/ext/builder.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb
index e1b4f56fe8..0386dc559b 100644
--- a/lib/rubygems/ext/builder.rb
+++ b/lib/rubygems/ext/builder.rb
@@ -25,9 +25,7 @@ class Gem::Ext::Builder
# try to find make program from Ruby configure arguments first
RbConfig::CONFIG["configure_args"] =~ /with-make-prog\=(\w+)/
make_program_name = ENV["MAKE"] || ENV["make"] || $1
- unless make_program_name
- make_program_name = RUBY_PLATFORM.include?("mswin") ? "nmake" : "make"
- end
+ make_program_name ||= RUBY_PLATFORM.include?("mswin") ? "nmake" : "make"
make_program = Shellwords.split(make_program_name)
# The installation of the bundled gems is failed when DESTDIR is empty in mswin platform.