Skip to content

Commit

Permalink
Removing warning : assigned but unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Nov 10, 2012
1 parent 90a1721 commit c33c991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/dbconsole.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion railties/test/commands/console_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c33c991

Please sign in to comment.