Skip to content

Commit 70392c7

Browse files
committed
review(#1194): removing test, unless blank instead of nil
1 parent 5b34fae commit 70392c7

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

config/initializers/session_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if Rails.env.production?
55
opts = { same_site: :lax, secure: true }
66
expiry_time = TeSS::Config.login_expires_after
7-
opts[:expire_after] = expiry_time unless expiry_time.nil?
7+
opts[:expire_after] = expiry_time unless expiry_time.blank?
88
end
99

1010
Rails.application.config.session_store :cookie_store, **opts

test/integration/session_expiry_test.rb

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)