Permalink
Browse files

Merge pull request #8165 from arunagw/warning_removed_unused_variables

Removing warning : assigned but unused variable
  • Loading branch information...
2 parents e803f3a + c33c991 commit 62039ad5a1fd5e2a9a713d8bfd10e0d0e50fe02f @carlosantoniodasilva carlosantoniodasilva 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
@@ -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
@@ -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 62039ad

Please sign in to comment.