Skip to content

Commit 5a30ee8

Browse files
committed
Format
1 parent a1b791e commit 5a30ee8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compileValueSchema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import { ValidationErrorIdentifier } from './error';
2121
* Creates a literal value that handles negative numbers properly for escodegen.
2222
* For negative numbers, creates a unary expression instead of a negative literal.
2323
*/
24-
function createSafeLiteral(value: string | number | boolean): namedTypes.Literal | namedTypes.UnaryExpression {
24+
function createSafeLiteral(
25+
value: string | number | boolean,
26+
): namedTypes.Literal | namedTypes.UnaryExpression {
2527
if (typeof value === 'number' && value < 0) {
2628
return builders.unaryExpression('-', builders.literal(-value));
2729
}

0 commit comments

Comments
 (0)