File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/ember-simple-auth/src/session-stores Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,10 @@ export default class CookieStore extends BaseStore {
216
216
217
217
this . _fastboot = ( getOwner ( this ) as any ) . lookup ( 'service:fastboot' ) ;
218
218
219
- let cachedExpirationTime = this . _read ( `${ this . get ( 'cookieName' ) } -expiration_time` ) ;
220
- if ( cachedExpirationTime ) {
221
- this . set ( 'cookieExpirationTime' , parseInt ( cachedExpirationTime as any , 10 ) ) ;
219
+ const cachedExpirationTime = this . _read ( `${ this . get ( 'cookieName' ) } -expiration_time` ) ;
220
+ const parsedExpirationTime = parseInt ( cachedExpirationTime , 10 ) ;
221
+ if ( parsedExpirationTime ) {
222
+ this . set ( 'cookieExpirationTime' , parsedExpirationTime ) ;
222
223
}
223
224
224
225
if ( ! this . get ( '_fastboot.isFastBoot' ) ) {
You can’t perform that action at this time.
0 commit comments