1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-10 07:50:05 +00:00

style: lint

This commit is contained in:
Mihajlo Medjedovic
2021-10-19 09:19:03 +00:00
parent 94fc242afe
commit 91c7c60dc9
2 changed files with 10 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ export const generateUniqueFileName = (fileName: string, extension = '') =>
export const addExtensionIfNotFound = (value: string, extension: string) => {
const valueSplit = value.split('.')
if (valueSplit.length < 2) return `.${extension}`
const hasExt = valueSplit[valueSplit.length - 1].length === 3