Skip to content

Commit 057ba5e

Browse files
committed
fix sonar issues
1 parent df16e5d commit 057ba5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cdkConstructs/src/constructs/TypescriptLambdaFunction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
import {NodejsFunction, NodejsFunctionProps} from "aws-cdk-lib/aws-lambda-nodejs"
1919
import {CfnLogGroup, CfnSubscriptionFilter, LogGroup} from "aws-cdk-lib/aws-logs"
2020
import {Construct} from "constructs"
21-
import {join} from "path"
21+
import {join} from "node:path"
2222
import {NagSuppressions} from "cdk-nag"
2323

2424
export interface TypescriptLambdaFunctionProps {
@@ -211,7 +211,7 @@ export class TypescriptLambdaFunction extends Construct {
211211
// Resources
212212
const logGroup = new LogGroup(this, "LambdaLogGroup", {
213213
encryptionKey: cloudWatchLogsKmsKey,
214-
logGroupName: `/aws/lambda/${functionName!}`,
214+
logGroupName: `/aws/lambda/${functionName}`,
215215
retention: logRetentionInDays,
216216
removalPolicy: RemovalPolicy.DESTROY
217217
})

packages/cdkConstructs/tests/functionConstruct.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "vitest"
1212

1313
import {TypescriptLambdaFunction} from "../src/constructs/TypescriptLambdaFunction"
14-
import {resolve} from "path"
14+
import {resolve} from "node:path"
1515

1616
describe("functionConstruct works correctly", () => {
1717
let stack: Stack

0 commit comments

Comments
 (0)