lib/rake/funnel/support/msbuild/build_tool.rb in rake-funnel-0.22.2 vs lib/rake/funnel/support/msbuild/build_tool.rb in rake-funnel-0.22.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'open3'
module Rake
module Funnel
module Support
@@ -20,12 +22,12 @@
unless status.success?
$stderr.print "Could not determine mono version: #{status}\n"
return nil
end
- return 'msbuild'.freeze if out[/^Mono JIT compiler version ([\d\.]+)/, 1] >= '5.0'
+ return 'msbuild' if out[/^Mono JIT compiler version ([\d\.]+)/, 1] >= '5.0'
- 'xbuild'.freeze
+ 'xbuild'
rescue Errno::ENOENT
nil
end
def vswhere # rubocop:disable Metrics/MethodLength