Skip to content

Commit db72fd7

Browse files
committed
Fix linter issues
1 parent ced92a2 commit db72fd7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/parseValues.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ export const parseValues = (values: any[], type: FieldType): any[] => {
3131
return values.every((_) => typeof _ === 'string')
3232
? values
3333
: values.map((_) => {
34-
if (_ === null) return _;
35-
else if (typeof _ === 'object') return JSON.stringify(_);
36-
else return _.toString();
34+
if (_ === null) {
35+
return _;
36+
} else if (typeof _ === 'object') {
37+
return JSON.stringify(_);
38+
} else {
39+
return _.toString();
40+
}
3741
});
3842
case FieldType.number:
3943
return values.every((_) => typeof _ === 'number') ? values : values.map((_) => (_ !== null ? parseFloat(_) : _));

0 commit comments

Comments
 (0)