Skip to content

Commit 2d92cb5

Browse files
committed
formatting fix
1 parent 28d94d1 commit 2d92cb5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/utils/validator.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,7 @@ function validateIntentionInputsOptional(
357357
fieldName: string
358358
): IntentionInput[] {
359359
if (!Array.isArray(inputs)) {
360-
throw new ValidationError(
361-
'Inputs must be an array',
362-
fieldName,
363-
inputs
364-
)
360+
throw new ValidationError('Inputs must be an array', fieldName, inputs)
365361
}
366362
if (inputs.length === 0) {
367363
return []
@@ -394,11 +390,7 @@ function validateIntentionOutputsOptional(
394390
fieldName: string
395391
): IntentionOutput[] {
396392
if (!Array.isArray(outputs)) {
397-
throw new ValidationError(
398-
'Outputs must be an array',
399-
fieldName,
400-
outputs
401-
)
393+
throw new ValidationError('Outputs must be an array', fieldName, outputs)
402394
}
403395
if (outputs.length === 0) {
404396
return []

0 commit comments

Comments
 (0)