Skip to content

Commit c8ab6fb

Browse files
authored
fix: pass if the reference token is empty string '' (#240)
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
1 parent 0533e6d commit c8ab6fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t4_devkit/sanity/reference/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def check(self, context: SanityContext) -> list[Reason] | None:
5656
)
5757
for record in source_records
5858
if record[self.reference] not in target_tokens
59+
and record[self.reference] != "" # NOTE: success if the reference token is ""
5960
and self.is_additional_condition_ok(record)
6061
] or None
6162

0 commit comments

Comments
 (0)