Skip to content

Commit 5d2b24e

Browse files
Cyanoxygenliushuyu
andcommitted
ab3cfg: simplify stage2 detection logic
Co-Authored-By: liushuyu <[email protected]>
1 parent 377fcd6 commit 5d2b24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acbs/ab3cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def is_in_stage2() -> bool:
1111
with open(ab3cfg_path) as f:
1212
vars = bashvar.eval_bashvar(f.read(), filename=ab3cfg_path)
1313
stage2_val: str = vars.get('ABSTAGE2')
14-
return True if stage2_val == '1' else False
14+
return stage2_val == '1'
1515
except OSError as e:
1616
raise RuntimeError(f'Unable to read Autobuild config file {ab3cfg_path}.') from e
1717
except ParseException as e:

0 commit comments

Comments
 (0)