From 543225970225de5697734bfaf0a6eee996802c04 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Fri, 9 Jul 2010 18:07:15 -0700 Subject: Code smell: Avoid needless decorations * Replaced 704 occurances of (.*)\b([a-z_]+)\(\) with \1\2 3 Examples: The code: ctx = OpenSSL::SSL::SSLContext.new() becomes: ctx = OpenSSL::SSL::SSLContext.new The code: skip() becomes: skip The code: path = tempfile() becomes: path = tempfile * Replaced 31 occurances of ^( *)end *#.* with \1end 3 Examples: The code: becomes: The code: end # Dir.foreach becomes: end The code: end # def becomes: end --- install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install.rb') diff --git a/install.rb b/install.rb index 293a4c4b4..42c62f1b7 100755 --- a/install.rb +++ b/install.rb @@ -413,7 +413,7 @@ def install_binfile(from, op_file, target) op.puts "#!#{ruby}" contents = ip.readlines contents.shift if contents[0] =~ /^#!/ - op.write contents.join() + op.write contents.join end end -- cgit