mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 05:10:20 +03:00
fix lint errors
This commit is contained in:
parent
3b157dab6b
commit
addd10b762
|
@ -141,8 +141,8 @@ export class SpecManager {
|
||||||
let that = this;
|
let that = this;
|
||||||
function getSecurityDefinition(name:string, scope:string) {
|
function getSecurityDefinition(name:string, scope:string) {
|
||||||
let secDefs = that._schema.securityDefinitions;
|
let secDefs = that._schema.securityDefinitions;
|
||||||
if (secDefs[name] && secDefs[name].type === "oauth2") {
|
if (secDefs[name] && secDefs[name].type === 'oauth2') {
|
||||||
let availScopes = secDefs[name].scopes
|
let availScopes = secDefs[name].scopes;
|
||||||
if (availScopes && availScopes[scope]) {
|
if (availScopes && availScopes[scope]) {
|
||||||
return availScopes[scope];
|
return availScopes[scope];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user