@@ -472,23 +472,25 @@ impl Analyser {
472472
473473 // Check if input identifier exists
474474 if let Some ( identifier) = flow. input_type_identifier
475- && !self . data_type_identifier_exists ( identifier. clone ( ) , -1 ) {
476- self . reporter . add_report ( Diagnose :: new (
477- name. clone ( ) ,
478- original_definition. clone ( ) ,
479- UndefinedDataTypeIdentifier { identifier } ,
480- ) ) ;
481- }
475+ && !self . data_type_identifier_exists ( identifier. clone ( ) , -1 )
476+ {
477+ self . reporter . add_report ( Diagnose :: new (
478+ name. clone ( ) ,
479+ original_definition. clone ( ) ,
480+ UndefinedDataTypeIdentifier { identifier } ,
481+ ) ) ;
482+ }
482483
483484 // Check if return identifier exists
484485 if let Some ( identifier) = flow. return_type_identifier
485- && !self . data_type_identifier_exists ( identifier. clone ( ) , -1 ) {
486- self . reporter . add_report ( Diagnose :: new (
487- name. clone ( ) ,
488- original_definition. clone ( ) ,
489- UndefinedDataTypeIdentifier { identifier } ,
490- ) ) ;
491- }
486+ && !self . data_type_identifier_exists ( identifier. clone ( ) , -1 )
487+ {
488+ self . reporter . add_report ( Diagnose :: new (
489+ name. clone ( ) ,
490+ original_definition. clone ( ) ,
491+ UndefinedDataTypeIdentifier { identifier } ,
492+ ) ) ;
493+ }
492494
493495 // Check if flow type identifier already exists
494496 for flow_type in & self . flow_types {
0 commit comments