Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: Bandini Bhopi <bandinib@amazon.com>
  • Loading branch information
bandinib-amzn committed Mar 8, 2024
1 parent 3eb9f2a commit 229da5b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,7 @@ export class DataSourceSavedObjectsClientWrapper {

private async isAuthTypeAvailableInRegistry(type: string): Promise<boolean> {
const authMethod = await this.getAuthenticationMethodFromRegistry(type);
if (authMethod !== undefined) {
return true;
}
return authMethod !== undefined;
return false;
}
}

0 comments on commit 229da5b

Please sign in to comment.