Skip to content

Commit 447473b

Browse files
committed
Tiny optimization of simple-schema
1 parent 809e098 commit 447473b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/adapters/simple-schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export function simpleSchema(value: unknown): JSONSchema {
1515
return { type: 'integer', format: 'unix-time' };
1616
}
1717

18-
const output: JSONSchema = { type: 'array' };
1918
if (Array.isArray(value)) {
19+
const output: JSONSchema = { type: 'array' };
2020
if (value.length) output.items = simpleSchema(value[0]);
2121
return output;
2222
} else {

0 commit comments

Comments
 (0)