Remove platform check (#6546)

This commit is contained in:
Gomez23 2020-06-15 11:00:18 +02:00 committed by GitHub
parent 3e118da147
commit ba6695a87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,8 +249,7 @@ module.exports = {
.get();
const [requestPath] = ctx.request.url.split('?');
const provider =
process.platform === 'win32' ? requestPath.split('\\')[2] : requestPath.split('/')[2];
const provider = requestPath.split('/')[2];
if (!_.get(grantConfig[provider], 'enabled')) {
return ctx.badRequest(null, 'This provider is disabled.');