Skip to content

Commit f48a04d

Browse files
committed
refactor(module-msal): simplify isRequestV4 type check
Remove redundant type checks in isRequestV4 function since we already validate that the input is an object before checking for the request property.
1 parent e8d6784 commit f48a04d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/modules/msal/src/v2/create-proxy-provider.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ function isRequestV4(
1919
return false;
2020
}
2121
const requestV4 = req as AcquireTokenOptions;
22-
return (
23-
typeof requestV4.request === 'object' &&
24-
requestV4.request !== null &&
25-
'request' in requestV4
26-
);
22+
return 'request' in requestV4;
2723
}
2824

2925
/**

0 commit comments

Comments
 (0)