]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Made condition more readable
authorJCWasmx86 <JCWasmx86@t-online.de>
Sun, 5 Jun 2022 14:09:53 +0000 (16:09 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 29 Apr 2023 19:00:17 +0000 (21:00 +0200)
dbusgen/valadbusvariantmodule.vala

index 436329684d49def5bbc76dc0a80eee125f38838f..d584568bb327e77e0ef0b570c39895d1b033f9f7 100644 (file)
@@ -195,7 +195,8 @@ public class Vala.DBusVariantModule {
                                var invalid_generic_arg = invalid_generic_type (element.key()) || invalid_generic_type (element.value ());
                                var key = get_variant_type (element.key ());
                                var value = get_variant_type (element.value ());
-                               if (key != null && value != null && !(key is ArrayType) && !(value is ArrayType) && !invalid_generic_arg) {
+                               var valid_types = !((key is ArrayType) || (value is ArrayType) || invalid_generic_arg);
+                               if (key != null && value != null && valid_types) {
                                        res.add_type_argument (key);
                                        res.add_type_argument (value);
                                        return res;