Skip to content

Commit 3e34d9b

Browse files
authored
Update typescript.ts
1 parent 57cc363 commit 3e34d9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/typescript.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ export function extractFileNames(functions: { [key: string]: ServerlessFunction
1010
.map(h => {
1111
const fnName = _.last(h.split('.'))
1212
const fnNameLastAppearanceIndex = h.lastIndexOf(fnName)
13-
1413
// replace only last instance to allow the same name for file and handler
15-
return h.substring(0, fnNameLastAppearanceIndex) + 'ts';
14+
return h.substring(0, fnNameLastAppearanceIndex) + 'ts'
1615
})
1716
}
1817

0 commit comments

Comments
 (0)