File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ abstract class BaseProvider implements BaseProviderInterface {
80
80
const key = [ name , configs . transform ] . toString ( ) ;
81
81
82
82
if ( ! configs . forceFetch && ! this . hasKeyExpiredInCache ( key ) ) {
83
+ // If the code enters in this block, then the key must exist & not have been expired
83
84
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
84
85
return this . store . get ( key ) ! . value ;
85
86
}
@@ -108,8 +109,9 @@ abstract class BaseProvider implements BaseProviderInterface {
108
109
const key = [ path , configs . transform ] . toString ( ) ;
109
110
110
111
if ( ! configs . forceFetch && ! this . hasKeyExpiredInCache ( key ) ) {
112
+ // If the code enters in this block, then the key must exist & not have been expired
111
113
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
112
- return this . store . get ( key ) ! . value as Record < string , unknown > ; // In this case we know that if it exists, this key corresponds to a Record
114
+ return this . store . get ( key ) ! . value as Record < string , unknown > ;
113
115
}
114
116
115
117
let values : Record < string , unknown > = { } ;
You can’t perform that action at this time.
0 commit comments