Skip to content

Commit 5d2e41a

Browse files
committed
Rubocop
1 parent e582ba5 commit 5d2e41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_dispatch/session/dynamo_db_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def delete_session(req, sid, options)
5151

5252
def config_file
5353
file = ENV.fetch('AWS_DYNAMO_DB_SESSION_CONFIG_FILE', nil)
54-
file = Rails.root.join("config/aws_dynamo_db_session_store/#{Rails.env}.yml") unless file
54+
file ||= Rails.root.join("config/aws_dynamo_db_session_store/#{Rails.env}.yml")
5555
file = Rails.root.join('config/aws_dynamo_db_session_store.yml') unless File.exist?(file)
5656
file if File.exist?(file)
5757
end

0 commit comments

Comments
 (0)