diff options
| author | Mike McQuaid | 2017-07-07 15:11:41 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-07-07 15:11:41 +0100 |
| commit | 9f6762d958ad8da9941c687ffe949f60267070cf (patch) | |
| tree | fd44271063147f9fd299b9dec540429aa2a9697a /Library/Homebrew/language | |
| parent | 1406f89ac5ded71eac9f4493ad3f9758287aaded (diff) | |
| download | brew-9f6762d958ad8da9941c687ffe949f60267070cf.tar.bz2 | |
language/node: general cleanup.
- Avoid using a temporary variable where not necessary
- Use fewer, better stubs in the tests to avoid warnings and better
test the implemented functionality.
Diffstat (limited to 'Library/Homebrew/language')
| -rw-r--r-- | Library/Homebrew/language/node.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/language/node.rb b/Library/Homebrew/language/node.rb index eaadc54fc..ce9baea21 100644 --- a/Library/Homebrew/language/node.rb +++ b/Library/Homebrew/language/node.rb @@ -10,8 +10,7 @@ module Language # fed to `npm install` only symlinks are created linking back to that # directory, consequently breaking that assumption. We require a tarball # because npm install creates a "real" installation when fed a tarball. - pack_cmd = "npm pack --ignore-scripts" - output = Utils.popen_read(pack_cmd) + output = Utils.popen_read("npm pack --ignore-scripts") if !$CHILD_STATUS.exitstatus.zero? || output.lines.empty? raise "npm failed to pack #{Dir.pwd}" end |
