On 9/10/19 1:37 AM, Markus Armbruster wrote: > check_type() uses @allow_optional only when @value is a dictionary and > @allow_dict is True. All callers that pass allow_dict=True also pass > allow_optional=True. > > Therefore, @allow_optional is always True when check_type() uses it. > Drop the redundant parameter. > > Signed-off-by: Markus Armbruster <arm...@redhat.com> > --- > scripts/qapi/common.py | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) >
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature