1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 20:40:05 +00:00

chore(lint): fixed linting

This commit is contained in:
Yury Shkoda
2022-06-20 19:48:42 +03:00
parent a113c95441
commit dd788ae423
23 changed files with 63 additions and 51 deletions

View File

@@ -15,7 +15,7 @@ export const getValidJson = (str: string | object): object => {
if (str === '') return {}
return JSON.parse(str)
} catch (e) {
} catch (e: any) {
if (e instanceof JsonParseArrayError) throw e
throw new InvalidJsonError()
}