mirror of
https://github.com/coder/code-server.git
synced 2024-12-28 20:25:54 +03:00
Un-nest a switch
This commit is contained in:
parent
63f3c04c57
commit
26f8216ec8
@ -39,7 +39,7 @@ export class ApiHttpProvider extends HttpProvider {
|
||||
return this.login(request)
|
||||
}
|
||||
break
|
||||
default:
|
||||
}
|
||||
if (!this.authenticated(request)) {
|
||||
return { code: HttpCode.Unauthorized }
|
||||
}
|
||||
@ -49,7 +49,6 @@ export class ApiHttpProvider extends HttpProvider {
|
||||
case ApiEndpoint.files:
|
||||
return this.files()
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user