Updated to list comprehension

This commit is contained in:
Dimitris Zlatanidis 2023-02-27 21:02:29 +02:00
parent 38abfce630
commit 07edc074da

View file

@ -102,6 +102,4 @@ class Utilities:
@staticmethod
def is_option(flag, flags):
""" Checking for flags. """
for f in flag:
if f in flags:
return True
return [f for f in flag if f in flags]