Skip to content

Commit

Permalink
style: fix super minor typo (#22384)
Browse files Browse the repository at this point in the history
----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
MalikAtalla-AWS committed Oct 6, 2022
1 parent 511eb79 commit b604292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cdk-assets/lib/aws.ts
Expand Up @@ -84,7 +84,7 @@ export class DefaultAwsClient implements IAws {
const sts = new this.AWS.STS();
const response = await sts.getCallerIdentity().promise();
if (!response.Account || !response.Arn) {
throw new Error(`Unrecognized reponse from STS: '${JSON.stringify(response)}'`);
throw new Error(`Unrecognized response from STS: '${JSON.stringify(response)}'`);
}
this.account = {
accountId: response.Account!,
Expand All @@ -99,7 +99,7 @@ export class DefaultAwsClient implements IAws {
const sts = new this.AWS.STS(await this.awsOptions(options));
const response = await sts.getCallerIdentity().promise();
if (!response.Account || !response.Arn) {
throw new Error(`Unrecognized reponse from STS: '${JSON.stringify(response)}'`);
throw new Error(`Unrecognized response from STS: '${JSON.stringify(response)}'`);
}
return {
accountId: response.Account!,
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk-assets/test/archive.test.ts
Expand Up @@ -23,7 +23,7 @@ test('zipDirectory can take a directory and produce a zip from it', async () =>

await expect(exec(`diff -bur ${originalDir} ${extractDir}`)).resolves.toBeTruthy();

// inspect the zile file to check that dates are reset
// inspect the zip file to check that dates are reset
const zip = await fs.readFile(zipFile);
const zipData = await jszip.loadAsync(zip);
const dates = Object.values(zipData.files).map(file => file.date.toISOString());
Expand Down

0 comments on commit b604292

Please sign in to comment.