Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
0.618 committed Apr 4, 2024
1 parent af7d339 commit 4603732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify-util-mock/src/api/lambda-arn-to-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const lambdaArnToConfig = async (context: $TSContext, arn: $TSAny): Promi
throw new Error(`Cannot interpret Lambda ARN [${JSON.stringify(arn)}]${errorSuffix}`);
}
const lambdaNames = _.entries<{ service: string }>(_.get(stateManager.getMeta(), ['function']))
.filter(([_, funcMeta]) => funcMeta.service === ServiceName.LambdaFunction)
.filter(([, funcMeta]) => funcMeta.service === ServiceName.LambdaFunction)
.map(([key]) => key);
const foundLambdaName = lambdaNames.find((name) => searchString.includes(name));
if (!foundLambdaName) {
Expand Down

0 comments on commit 4603732

Please sign in to comment.