modules/gnome: fix warning message that will always fire

`typed_pos_args` ensures that the length of args is always true.
pull/9580/head
Dylan Baker 3 years ago committed by Jussi Pakkanen
parent aaac5538bf
commit 40a8a3f8fe
  1. 5
      mesonbuild/modules/gnome.py

@ -1051,9 +1051,8 @@ class GnomeModule(ExtensionModule):
sources = args[1]
if not sources:
raise MesonException('Yelp requires a list of sources')
else:
if len(args) > 1:
mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
elif args[1]:
mlog.warning('"gnome.yelp" ignores positional sources arguments when the "sources" keyword argument is set')
source_str = '@@'.join(sources)
langs = kwargs['languages']

Loading…
Cancel
Save