Skip to content

Commit 3a06327

Browse files
committed
Please eslint
1 parent b5b43d4 commit 3a06327

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ export const fromKebab = x => x.replace(/-/g, '_')
326326
function createJsonTransform(fn) {
327327
return function jsonTransform(x, column) {
328328
return column.type === 114 || column.type === 3802
329-
? Array.isArray(x)
330-
? x.map(jsonTransform)
331-
: Object.entries(x).reduce((acc, [k, v]) => Object.assign(acc, { [fn(k)]: v }), {})
332-
: x
329+
? Array.isArray(x)
330+
? x.map(jsonTransform)
331+
: Object.entries(x).reduce((acc, [k, v]) => Object.assign(acc, { [fn(k)]: v }), {})
332+
: x
333333
}
334334
}
335335

@@ -338,7 +338,7 @@ toCamel.value = { from: createJsonTransform(toCamel) }
338338
fromCamel.column = { to: fromCamel }
339339

340340
export const camel = { ...toCamel }
341-
camel.column.to = fromCamel;
341+
camel.column.to = fromCamel
342342

343343
toPascal.column = { from: toPascal }
344344
toPascal.value = { from: createJsonTransform(toPascal) }

0 commit comments

Comments
 (0)