From 691a74aec2a34540cce8c1a86f4874bd0814a65c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 3 Dec 2019 21:54:09 -0500 Subject: [PATCH] interpreter: Remove useless check extract_required_kwarg() above already ensure that required is always boolean at that point. --- mesonbuild/interpreter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index c6d4ec72d..e402afbd2 100644 --- a/mesonbuild/interpreter.py +++ b/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)