Skip to content

Commit 6470198

Browse files
committed
Fix linter
1 parent b791fb0 commit 6470198

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ export const eventHandler = async (
99
) => {
1010
const { payload, client } = event
1111

12-
let { writeKey, hostname = 'api.segment.io' } = settings
12+
let { hostname = 'api.segment.io' } = settings
1313
if (payload.hostname) {
1414
hostname = payload.hostname
1515
}
1616
const endpoint = `https://${hostname}/v1/${eventType}`
1717

18+
const { writeKey } = settings
19+
1820
// Prepare new payload
1921
const uaParser = new UAParser(client.userAgent).getResult()
2022
/* eslint-disable @typescript-eslint/no-explicit-any */

0 commit comments

Comments
 (0)