aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorMartin Afanasjew2016-07-08 01:14:34 +0200
committerGitHub2016-07-08 01:14:34 +0200
commitbf40dd64dff1fc86b0ecbde33dc9e3be3ef3fccb (patch)
treef179c96a8cdc428671db3969904be3802cd9a650 /Library/Homebrew/build.rb
parent86b1df96b9a439c9a31556c0e9fd6c297e4f6646 (diff)
downloadbrew-bf40dd64dff1fc86b0ecbde33dc9e3be3ef3fccb.tar.bz2
tab: eliminate redundant 'Tab.create' arguments (#468)
The `build` and `source_modified_time` arguments are always coming from the matching attributes of the `Formula` instance. Thus query `formula` for them instead of passing them individually.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 1c9584719..8915e948c 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -131,7 +131,8 @@ class Build
formula.install
stdlibs = detect_stdlibs(ENV.compiler)
- Tab.create(formula, ENV.compiler, stdlibs.first, formula.build, formula.source_modified_time).write
+ tab = Tab.create(formula, ENV.compiler, stdlibs.first)
+ tab.write
# Find and link metafiles
formula.prefix.install_metafiles formula.buildpath