refactor: 🚨 Simplify boolean return

This commit is contained in:
Jesse Wierzbinski 2024-10-03 10:30:22 +02:00
parent a4aafc202c
commit 5ed3f04d48
No known key found for this signature in database

View file

@ -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),
);
};