aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-18 17:35:35 -0600
committerJack Nagel2013-02-18 17:38:57 -0600
commit2c04ee4e049ee570b36c4449b386cf17fa2590d2 (patch)
tree447367f0f17159a749d066fabd28f87221a08de5 /Library/Formula
parent6bd8114d131e353fc1e3060ee38919b756006183 (diff)
downloadhomebrew-2c04ee4e049ee570b36c4449b386cf17fa2590d2.tar.bz2
Remove unused variables
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/node.rb2
-rw-r--r--Library/Formula/texmacs.rb3
-rw-r--r--Library/Formula/tuntap.rb3
3 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index ca39f8013..515d0566a 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -34,7 +34,7 @@ class NpmNotInstalled < Requirement
begin
path = Pathname.new("#{modules_folder}/npm")
path.realpath.to_s.include?(HOMEBREW_CELLAR)
- rescue Exception => e
+ rescue Errno::ENOENT
true
end
end
diff --git a/Library/Formula/texmacs.rb b/Library/Formula/texmacs.rb
index 4d515f8a1..eaeedadba 100644
--- a/Library/Formula/texmacs.rb
+++ b/Library/Formula/texmacs.rb
@@ -18,8 +18,7 @@ class Texmacs < Formula
system "make install"
end
- def caveats
- general_caveats = <<-EOS.undent
+ def caveats; <<-EOS.undent
TeXmacs has been installed! You can also check some dependencies :
* Aspell for spell checking
* Gnuplot for inline plotting
diff --git a/Library/Formula/tuntap.rb b/Library/Formula/tuntap.rb
index 450a35fa9..930d015f8 100644
--- a/Library/Formula/tuntap.rb
+++ b/Library/Formula/tuntap.rb
@@ -18,8 +18,7 @@ class Tuntap < Formula
end
end
- def caveats
- message = <<-EOS.undent
+ def caveats; <<-EOS.undent
In order for TUN/TAP network devices to work, the tun/tap kernel extensions
must be installed by the root user: