Skip to content

Commit

Permalink
chore: remove extraneous spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rjabhi committed Dec 18, 2024
1 parent 36c3929 commit e11c33b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 9 additions & 3 deletions packages/amplify-gen2-codegen/src/backend/synthesizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ts, {
NodeArray,
SyntaxKind,
VariableDeclaration,
VariableStatement
VariableStatement,
} from 'typescript';
import { PolicyOverrides, ReferenceAuth } from '../auth/source_builder.js';
import { BucketAccelerateStatus, BucketVersioningStatus } from '@aws-sdk/client-s3';
Expand Down Expand Up @@ -284,7 +284,13 @@ export class BackendSynthesizer {
} else if (key == 'SupportedIdentityProviders') {
this.supportedIdentityProviderFlag = true;
// Providers are upper case in CDK
objectLiterals.push(this.createEnumListPropertyAssignment(mappedProperty, 'UserPoolClientIdentityProvider', value.map(provider => provider.toUpperCase())));
objectLiterals.push(
this.createEnumListPropertyAssignment(
mappedProperty,
'UserPoolClientIdentityProvider',
value.map((provider) => provider.toUpperCase()),
),
);
} else if (!this.oAuthFlag && key == 'AllowedOAuthFlows') {
this.oAuthFlag = true;
objectLiterals.push(this.createOAuthObjectExpression(object, gen2PropertyMap));
Expand Down Expand Up @@ -476,7 +482,7 @@ export class BackendSynthesizer {
}

if (renderArgs.function) {
const functionIdentifiers: Identifier[] = [];
const functionIdentifiers: Identifier[] = [];
const functionNameCategories = renderArgs.function.functionNamesAndCategories;
for (const [functionName, category] of functionNameCategories) {
functionIdentifiers.push(factory.createIdentifier(functionName));
Expand Down
5 changes: 2 additions & 3 deletions packages/amplify-migration/src/app_auth_definition_fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export class AppAuthDefinitionFetcher {
}

const amplifyMeta = (await this.readJsonFile(amplifyMetaPath)) ?? {};
const isImported = 'auth' in amplifyMeta && Object.keys(amplifyMeta.auth).map((key) => amplifyMeta.auth[key])[0].serviceType === 'imported';
const isImported =
'auth' in amplifyMeta && Object.keys(amplifyMeta.auth).map((key) => amplifyMeta.auth[key])[0].serviceType === 'imported';
if (!isImported) {
return undefined;
}
Expand Down Expand Up @@ -118,8 +119,6 @@ export class AppAuthDefinitionFetcher {
};
}



const backendEnvironment = await this.backendEnvironmentResolver.selectBackendEnvironment();
assert(backendEnvironment?.stackName);
const stackResources = await this.stackParser.getAllStackResources(backendEnvironment.stackName);
Expand Down

0 comments on commit e11c33b

Please sign in to comment.