File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export class SuperHeaders extends Headers {
241
241
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie)
242
242
*/
243
243
getSetCookie ( ) : string [ ] {
244
- return this . #setCookies. map ( ( value ) => ( typeof value === 'string' ? value : value . toString ( ) ) ) ;
244
+ return this . #setCookies. map ( ( v ) => ( typeof v === 'string' ? v : v . toString ( ) ) ) ;
245
245
}
246
246
247
247
/**
@@ -251,11 +251,7 @@ export class SuperHeaders extends Headers {
251
251
*/
252
252
has ( name : string ) : boolean {
253
253
let key = name . toLowerCase ( ) ;
254
- if ( key === SetCookieKey ) {
255
- return this . #setCookies. length > 0 ;
256
- } else {
257
- return this . #map. has ( key ) ;
258
- }
254
+ return key === SetCookieKey ? this . #setCookies. length > 0 : this . #map. has ( key ) ;
259
255
}
260
256
261
257
/**
You can’t perform that action at this time.
0 commit comments