Skip to content

Commit

Permalink
feat: apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
prazian committed Jun 21, 2024
1 parent 39f341b commit 2ee78c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/core/lib/custom-resource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Construct } from 'constructs';
import { CfnResource } from './cfn-resource';
import { RemovalPolicy } from './removal-policy';
import { Duration } from './duration';
import { RemovalPolicy } from './removal-policy';
import { Resource } from './resource';
import { Token } from './token';

Expand Down Expand Up @@ -240,7 +240,7 @@ function renderServiceTimeout(serviceTimeout?: Duration): string|undefined {
let timeoutSeconds = serviceTimeout.toSeconds();

if (timeoutSeconds < 1 || timeoutSeconds > 3600) {
throw new Error('ServiceTimeout must be an integer from 1 to 3600');
throw new Error('ServiceTimeout must be an integer from 1 to 3600');
}

return timeoutSeconds.toString();
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/core/test/custom-resource.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toCloudFormation } from './util';
import {CustomResource, Duration, RemovalPolicy, Stack} from '../lib';
import { CustomResource, Duration, RemovalPolicy, Stack } from '../lib';

describe('custom resource', () => {
test('simple case provider identified by service token', () => {
Expand Down Expand Up @@ -100,7 +100,7 @@ describe('custom resource', () => {
Properties: {
ServiceToken: 'MyServiceToken',
},
ServiceTimeout: "300",
ServiceTimeout: '300',
},
},
});
Expand Down

0 comments on commit 2ee78c2

Please sign in to comment.