Skip to content

Commit ce5b64d

Browse files
committed
fix lint
1 parent 424d8db commit ce5b64d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

process/src/jobs/metabase/widget-query.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { RequestWidget } from "../../types";
77
const BATCH_SIZE = 5000;
88

99
function sanitizeRemoteValue(value: string): string {
10-
if (!value) return "";
10+
if (!value) {
11+
return "";
12+
}
1113

1214
return (
1315
value
@@ -23,8 +25,12 @@ function sanitizeRemoteValue(value: string): string {
2325
}
2426

2527
const toArray = (value: string | string[] | undefined) => {
26-
if (!value) return [];
27-
if (Array.isArray(value)) return value.map(sanitizeRemoteValue);
28+
if (!value) {
29+
return [];
30+
}
31+
if (Array.isArray(value)) {
32+
return value.map(sanitizeRemoteValue);
33+
}
2834
return [sanitizeRemoteValue(value)];
2935
};
3036

0 commit comments

Comments
 (0)