From 1ce04786d6ea22a45320afcfc2283ce8817c401b Mon Sep 17 00:00:00 2001
From: Jack Nagel <jacknagel@gmail.com>
Date: Sun, 21 Jun 2015 21:18:24 -0400
Subject: [PATCH] Inline variable

---
 Library/Homebrew/extend/ENV/shared.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 2b13490d5e..c886c43125 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -210,13 +210,11 @@ module SharedEnvExtension
   end
 
   def warn_about_non_apple_gcc(name)
-    gcc_version_name = name.delete(".-")
-
     begin
       gcc_formula = gcc_version_formula(name)
     rescue FormulaUnavailableError
       raise <<-EOS.undent
-      Homebrew GCC requested, but formula #{gcc_version_name} not found!
+      Homebrew GCC requested, but formula #{name.delete(".-")} not found!
       You may need to: brew tap homebrew/versions
       EOS
     end
-- 
GitLab