Skip to content

Commit 35fa902

Browse files
bonzinijpakkane
authored andcommitted
options: do not use always-true variable
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent b78bedc commit 35fa902

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mesonbuild/options.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,6 @@ def initialize_from_subproject_call(self,
13801380
spcall_default_options: OptionDict,
13811381
project_default_options: OptionDict,
13821382
cmd_line_options: OptionDict) -> None:
1383-
is_first_invocation = True
13841383
for keystr, valstr in itertools.chain(project_default_options.items(), spcall_default_options.items()):
13851384
if isinstance(keystr, str):
13861385
key = OptionKey.from_string(keystr)
@@ -1394,7 +1393,7 @@ def initialize_from_subproject_call(self,
13941393
# If the key points to a project option, set the value from that.
13951394
# Otherwise set an augment.
13961395
if key in self.project_options:
1397-
self.set_option(key, valstr, is_first_invocation)
1396+
self.set_option(key, valstr, True)
13981397
else:
13991398
self.pending_options.pop(key, None)
14001399
self.augments[key] = valstr
@@ -1406,7 +1405,7 @@ def initialize_from_subproject_call(self,
14061405
continue
14071406
self.pending_options.pop(key, None)
14081407
if key in self.options:
1409-
self.set_option(key, valstr, is_first_invocation)
1408+
self.set_option(key, valstr, True)
14101409
else:
14111410
self.augments[key] = valstr
14121411

0 commit comments

Comments
 (0)