tools: ratbagctl: fix len(array) > 0 check
"for python, instead of checking len > 0 we're supposed to use
if input_string"
@@ -1183,7 +1183,7 @@ class RatbagParserSwitch(RatbagParser):
parser.set_defaults(subparse=self.sub_parse)
def _sub_parse(self, input_string, ns):
- if len(input_string) > 0 and self.N_access is not None:
+ if input_string and self.N_access is not None:
# retrieve first numbered element if any
try:
int(input_string[0])
