diff --git a/scripts/check-yaml-fields.py b/scripts/check-yaml-fields.py index 821b53c29..73e902fc9 100644 --- a/scripts/check-yaml-fields.py +++ b/scripts/check-yaml-fields.py @@ -27,8 +27,7 @@ def main(): v = v[index] if expected is None: print(v) - else: - assert v == expected, "{!r} != {!r}".format(v, expected) + assert v == expected, "{!r} != {!r}".format(v, expected) main()