Skip to content

Commit b30d112

Browse files
Merged if statements into one
1 parent 8966bc5 commit b30d112

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

projects/lib/src/interceptors/default-oauth.interceptor.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,7 @@ export class DefaultOAuthInterceptor implements HttpInterceptor {
4444
const url = req.url.toLowerCase();
4545

4646

47-
if (!this.moduleConfig) {
48-
return next.handle(req);
49-
}
50-
if (!this.moduleConfig.resourceServer) {
51-
return next.handle(req);
52-
}
53-
if (!this.checkUrl(url)) {
47+
if (!this.moduleConfig || !this.moduleConfig.resourceServer || !this.checkUrl(url)) {
5448
return next.handle(req);
5549
}
5650

0 commit comments

Comments
 (0)