File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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 [ ]
You can’t perform that action at this time.
0 commit comments