Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused assignments

  • Loading branch information...
commit d56f5c8db7e937cabd07ff192c386f2aefed33a4 1 parent 54683f3
Mark Rushakoff mark-rushakoff authored
1  actionpack/lib/action_dispatch/middleware/cookies.rb
View
@@ -339,7 +339,6 @@ def initialize(app)
end
def call(env)
- cookie_jar = nil
status, headers, body = @app.call(env)
if cookie_jar = env['action_dispatch.cookies']
8 activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
View
@@ -286,12 +286,10 @@ def reap
private
def release(conn)
- thread_id = nil
-
- if @reserved_connections[current_connection_id] == conn
- thread_id = current_connection_id
+ thread_id = if @reserved_connections[current_connection_id] == conn
+ current_connection_id
else
- thread_id = @reserved_connections.keys.find { |k|
+ @reserved_connections.keys.find { |k|
@reserved_connections[k] == conn
}
end
2  activesupport/lib/active_support/testing/performance/jruby.rb
View
@@ -42,7 +42,7 @@ def record
klasses.each do |klass|
fname = output_filename(klass)
FileUtils.mkdir_p(File.dirname(fname))
- file = File.open(fname, 'wb') do |file|
+ File.open(fname, 'wb') do |file|
klass.new(@data).printProfile(file)
end
end
1  railties/lib/rails/commands/runner.rb
View
@@ -9,7 +9,6 @@
end
ARGV.clone.options do |opts|
- script_name = File.basename($0)
opts.banner = "Usage: runner [options] ('Some.ruby(code)' or a filename)"
opts.separator ""
Please sign in to comment.
Something went wrong with that request. Please try again.