From 2c04ee4e049ee570b36c4449b386cf17fa2590d2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 18 Feb 2013 17:35:35 -0600 Subject: Remove unused variables --- Library/Formula/node.rb | 2 +- Library/Formula/texmacs.rb | 3 +-- Library/Formula/tuntap.rb | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'Library') 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: -- cgit v1.2.3