Browse files

Removing warning : assigned but unused variable

  • Loading branch information...
1 parent 90a1721 commit c33c991eabd628b172bc219de1bf25fd75e93c93 @arunagw arunagw committed Nov 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/rails/commands/dbconsole.rb
  2. +1 −1 railties/test/commands/console_test.rb
View
2 railties/lib/rails/commands/dbconsole.rb
@@ -154,7 +154,7 @@ def find_cmd_and_exec(commands, *args)
full_path_command = nil
found = commands.detect do |cmd|
- dir = dirs_on_path.detect do |path|
+ dirs_on_path.detect do |path|
full_path_command = File.join(path, cmd)
File.executable? full_path_command
end
View
2 railties/test/commands/console_test.rb
@@ -110,7 +110,7 @@ def test_rails_env_is_development_when_argument_is_d
def start(argv = [])
rails_console = Rails::Console.new(app, parse_arguments(argv))
- @output = output = capture(:stdout) { rails_console.start }
+ @output = capture(:stdout) { rails_console.start }
end
def app

0 comments on commit c33c991

Please sign in to comment.