mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28: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 (
|
||||
nonMatchedScopes.every((scope) =>
|
||||
application.scopes.split(" ").includes(scope),
|
||||
)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return nonMatchedScopes.every((scope) =>
|
||||
application.scopes.split(" ").includes(scope),
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue