From 9ef8023fe6287bde0294f769b4ae31072556ca5f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 19 Feb 2019 13:28:13 +0000 Subject: [PATCH] maven@3.5: fix rubocop 0.65.0 style. --- Formula/maven@3.5.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/maven@3.5.rb b/Formula/maven@3.5.rb index 666d784fa0..3faef6bc5e 100644 --- a/Formula/maven@3.5.rb +++ b/Formula/maven@3.5.rb @@ -24,8 +24,10 @@ class MavenAT35 < Formula # file will be found relative to it Pathname.glob("#{libexec}/bin/*") do |file| next if file.directory? + basename = file.basename next if basename.to_s == "m2.conf" + (bin/basename).write_env_script file, Language::Java.overridable_java_home_env end end