qapi/expr.py: move string check upwards in check_type
commit926bb8add7c549496c612fcd4a32f3cf37883c2a
authorJohn Snow <jsnow@redhat.com>
Wed, 21 Apr 2021 18:20:21 +0000 (21 14:20 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 30 Apr 2021 10:59:54 +0000 (30 12:59 +0200)
treebb319e2fa6d2959d8add1d24fc1dc97201d38a07
parentb66c62a2d3318c5d968d5b95428efb74ca5d5702
qapi/expr.py: move string check upwards in check_type

For readability purposes only, shimmy the early return upwards to the
top of the function, so cases proceed in order from least to most
complex.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210421182032.3521476-7-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/expr.py