From 0901e7761736f00db73353b0dd86c09a10e2b7bc Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 6 Apr 2014 18:12:14 +0100 Subject: node: remove install_symlink exist? guards. --- Library/Formula/node.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index ad8c5a53d..a633672e0 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -61,16 +61,13 @@ class Node < Formula Pathname.glob(npm_root/"man/*") do |man| dir = send(man.basename) man.children.each do |file| - next if (dir/file.basename).exist? dir.install_symlink(file) end end if build.with? "completion" - unless (bash_completion/"npm").exist? - bash_completion.install_symlink \ - npm_root/"lib/utils/completion.sh" => "npm" - end + bash_completion.install_symlink \ + npm_root/"lib/utils/completion.sh" => "npm" end end -- cgit v1.2.3