Skip to content

Commit

Permalink
qapi: Clean up after removal of simple unions
Browse files Browse the repository at this point in the history
Commit 4e99f4b (qapi: Drop simple unions) missed a bit of code
dealing with simple union branches.  Drop it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230316071325.492471-4-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
  • Loading branch information
Markus Armbruster committed Apr 24, 2023
1 parent ecee568 commit 607045b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/qapi/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def check_union(expr: QAPIExpression) -> None:
source = "'data' member '%s'" % key
check_keys(value, info, source, ['type'], ['if'])
check_if(value, info, source)
check_type(value['type'], info, source, allow_array=not base)
check_type(value['type'], info, source)


def check_alternate(expr: QAPIExpression) -> None:
Expand Down

0 comments on commit 607045b

Please sign in to comment.