Skip to content

Commit

Permalink
chore: remove other mentions of persistContext
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle committed Jun 18, 2021
1 parent 6ddb167 commit bb1a342
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/amplify-cli/src/__tests__/test-aborting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ describe('test SIGINT with execute', () => {
mockContext.amplify = jest.genMockFromModule('../domain/amplify-toolkit');
jest.setMock('../context-manager', {
constructContext: jest.fn().mockReturnValue(mockContext),
persistContext: jest.fn(),
attachUsageData: jest.fn(),
});

Expand Down
2 changes: 0 additions & 2 deletions packages/amplify-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ export async function execute(input: Input): Promise<number> {
context.usageData.emitSuccess();
}

persistContext(context);

return exitCode;
} catch (e) {
// ToDo: add logging to the core, and log execution errors using the unified core logging.
Expand Down

0 comments on commit bb1a342

Please sign in to comment.