diff options
| author | Markus Reiter | 2016-09-23 11:01:40 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:07 +0200 |
| commit | fe2d51e0b9d4d9c138e512c245b1ed8d0f1dbf53 (patch) | |
| tree | 24c62806b60d59b0f9a689ac693a7afec5bd3291 /Library/Homebrew/language | |
| parent | a5b11a6a5c7e29b9040f93fd211f52479507dd01 (diff) | |
| download | brew-fe2d51e0b9d4d9c138e512c245b1ed8d0f1dbf53.tar.bz2 | |
Fix Style/IfUnlessModifier.
Diffstat (limited to 'Library/Homebrew/language')
| -rw-r--r-- | Library/Homebrew/language/haskell.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb index b5d0e1220..4b7f88a99 100644 --- a/Library/Homebrew/language/haskell.rb +++ b/Library/Homebrew/language/haskell.rb @@ -79,19 +79,16 @@ module Language # if we have build flags, we have to pass them to cabal install to resolve the necessary # dependencies, and call cabal configure afterwards to set the flags again for compile - flags = "" - if options[:flags] - flags = "--flags=#{options[:flags].join(" ")}" - end + flags = "--flags=#{options[:flags].join(" ")}" if options[:flags] args_and_flags = args - args_and_flags << flags unless flags.empty? + args_and_flags << flags unless flags.nil? # install dependencies in the sandbox cabal_install "--only-dependencies", *args_and_flags # call configure if build flags are set - cabal_configure flags unless flags.empty? + cabal_configure flags unless flags.nil? # install the main package in the destination dir cabal_install "--prefix=#{prefix}", *args |
