interpreter: Remove useless check

extract_required_kwarg() above already ensure that required is always
boolean at that point.
pull/6301/head
Xavier Claessens 5 years ago committed by Xavier Claessens
parent c00e17b35a
commit 691a74aec2
  1. 2
      mesonbuild/interpreter.py

@ -2993,8 +2993,6 @@ external dependencies (including libraries) must go to "dependencies".''')
mlog.log('Program', mlog.bold(' '.join(args)), 'skipped: feature', mlog.bold(feature), 'disabled')
return ExternalProgramHolder(dependencies.NonExistingExternalProgram())
if not isinstance(required, bool):
raise InvalidArguments('"required" argument must be a boolean.')
wanted = mesonlib.stringlistify(kwargs.get('version', []))
for_machine = self.machine_from_native_kwarg(kwargs)
return self.find_program_impl(args, for_machine, required=required, silent=False, wanted=wanted)

Loading…
Cancel
Save