chores: Lint + dependency update

This commit is contained in:
Liyas Thomas
2020-09-27 23:34:15 +05:30
parent ee066d7859
commit 7e1e61f8af
12 changed files with 63 additions and 68 deletions

View File

@@ -14,7 +14,7 @@ export const codegens = [JSXHRCodegen, JSFetchCodegen, CurlCodegen]
export function generateCodeWithGenerator(codegenID, context) {
if (codegenID) {
const gen = codegens.find((e) => e.id === codegenID)
const gen = codegens.find(({ id }) => id === codegenID)
return gen ? gen.generator(context) : ""
}