modules/gnome: fix warning message that will always fire
`typed_pos_args` ensures that the length of args is always true.
@@ -1051,8 +1051,7 @@ class GnomeModule(ExtensionModule):
sources = args[1]
if not sources:
raise MesonException('Yelp requires a list of sources')
- else:
- if len(args) > 1:
+ elif args[1]:
mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
source_str = '@@'.join(sources)
