Skip to content

Commit

Permalink
fix: address lgtm bot comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig-aws committed Oct 15, 2021
1 parent 3113acc commit 5cadd85
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@ function getTransformerFactory(
// TODO: Build dependency mechanism into transformers. Auth runs last
// so any resolvers that need to be protected will already be created.

let amplifyAdminEnabled: boolean = false;
let adminUserPoolID: string;
try {
const amplifyMeta = stateManager.getMeta();
const appId = amplifyMeta?.providers?.[providerName]?.AmplifyAppId;
const res = await isAmplifyAdminApp(appId);
amplifyAdminEnabled = res.isAdminApp;
adminUserPoolID = res.userPoolID;
} catch (err) {
console.info('App not deployed yet.');
Expand Down

0 comments on commit 5cadd85

Please sign in to comment.