Skip to content

Commit 63746c7

Browse files
committed
Enforce noUnusedLocals
1 parent 257d04d commit 63746c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/reader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const handler: S3Handler = async (
1414

1515
// Put your code below, this is just here to demonstrate the email object.
1616
// There's a corresponding test in `tests/reader.test.ts` too.
17-
const { subject, text, html, attachments } = email;
17+
const { subject, text, html } = email;
1818

1919
console.log("Read email:", subject);
2020
callback(undefined, { subject, text, html });

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"module": "commonjs",
1111
"noFallthroughCasesInSwitch": false,
1212
"noImplicitReturns": true,
13-
"noUnusedLocals": false,
13+
"noUnusedLocals": true,
1414
"noUnusedParameters": false,
1515
"resolveJsonModule": true,
1616
"strict": true,

0 commit comments

Comments
 (0)