aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-06 11:27:28 -0800
committerAdam Vandenberg2013-01-06 11:27:28 -0800
commit67e6e85fbd270dc94f4ae1bf644405e8719fcafd (patch)
treefb87d9aad8d239c912f68153362805afd7bb7421 /Library
parent85a666701f4025107cd94ac6ebe940ee763ca2c4 (diff)
downloadhomebrew-67e6e85fbd270dc94f4ae1bf644405e8719fcafd.tar.bz2
vim: inline some variables
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/vim.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index 52d6f6ef7..60929c276 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -23,12 +23,9 @@ class Vim < Formula
ENV['LUA_PREFIX'] = HOMEBREW_PREFIX
language_opts = LANGUAGES.map do |language|
- with_option = "with-#{language}"
- without_option = "without-#{language}"
-
- if DEFAULT_LANGUAGES.include? language and !build.include? without_option
+ if DEFAULT_LANGUAGES.include? language and !build.include? "without-#{language}"
"--enable-#{language}interp"
- elsif build.include? with_option
+ elsif build.include? "with-#{language}"
"--enable-#{language}interp"
end
end.compact