mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
refactor: 🚨 Simplify boolean return
This commit is contained in:
parent
a4aafc202c
commit
5ed3f04d48
|
|
@ -49,13 +49,7 @@ export const checkIfOauthIsValid = (
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are scopes left, check if they match
|
// If there are scopes left, check if they match
|
||||||
if (
|
return nonMatchedScopes.every((scope) =>
|
||||||
nonMatchedScopes.every((scope) =>
|
application.scopes.split(" ").includes(scope),
|
||||||
application.scopes.split(" ").includes(scope),
|
);
|
||||||
)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue