style: exit early to reduce indentation
This commit is contained in:
@@ -275,8 +275,10 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
options.globals.build_selector, options.globals.architectures
|
options.globals.build_selector, options.globals.architectures
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if len(python_configurations) == 0:
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if len(python_configurations) > 0:
|
|
||||||
before_all_options_identifier = python_configurations[0].identifier
|
before_all_options_identifier = python_configurations[0].identifier
|
||||||
before_all_options = options.build_options(before_all_options_identifier)
|
before_all_options = options.build_options(before_all_options_identifier)
|
||||||
|
|
||||||
|
|||||||
@@ -234,8 +234,10 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
options.globals.build_selector, options.globals.architectures
|
options.globals.build_selector, options.globals.architectures
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if len(python_configurations) == 0:
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if len(python_configurations) > 0:
|
|
||||||
before_all_options_identifier = python_configurations[0].identifier
|
before_all_options_identifier = python_configurations[0].identifier
|
||||||
before_all_options = options.build_options(before_all_options_identifier)
|
before_all_options = options.build_options(before_all_options_identifier)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user