Skip to content

Commit

Permalink
chore: remove previously added path parsing logic for AmplifyOutputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Kumar committed Jan 22, 2025
1 parent 8b8c2a7 commit 08dde45
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/core/src/parseAmplifyOutputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,22 +395,10 @@ function createBucketInfoMap(
);
}

const sanitizedPaths = paths
? Object.entries(paths).reduce<
Record<string, Record<string, string[] | undefined>>
>((acc, [key, value]) => {
if (value !== undefined) {
acc[key] = value;
}

return acc;
}, {})
: undefined;

mappedBuckets[name] = {
bucketName,
region,
paths: sanitizedPaths,
paths,
};
},
);
Expand Down

0 comments on commit 08dde45

Please sign in to comment.