Permalink
Browse files

don't reuse variable names

  • Loading branch information...
1 parent 5a53670 commit b4053e1f750a2fdba24fb5c7c4b5525111e5718d @vertiginous committed Jan 26, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 tools/pik_runner
View
8 tools/pik_runner
@@ -8,13 +8,13 @@ begin
Pik.script = ARGV.shift
config = Pik::ConfigFile.new
- command = if cmd = Pik::Commands.find(ARGV[0])
+ command = if c = Pik::Commands.find(ARGV[0])
ARGV.shift
- cmd
- elsif ARGV[0] =~ /,/ && cmd = Pik::Commands.find(ARGV[1])
+ c
+ elsif ARGV[0] =~ /,/ && c = Pik::Commands.find(ARGV[1])
config.options[:versions] = ARGV.shift
ARGV.shift
- cmd
+ c
elsif version = config.match(ARGV[0])
ARGV.shift
config.options[:use] = version

0 comments on commit b4053e1

Please sign in to comment.