Skip to content

Commit 5c17a7e

Browse files
dguidoclaude
andcommitted
style: clean up defer compilation code
- Remove unnecessary return statement in compile() - Use clearer != comparison instead of not ... == ... Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent e07d4f2 commit 5c17a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crytic_compile/crytic_compile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(self, target: str | AbstractPlatform, **kwargs: str) -> None:
208208

209209
self.compilation_kwargs = kwargs
210210

211-
if not kwargs.get("crytic_defer_compilation") == "true":
211+
if kwargs.get("crytic_defer_compilation") != "true":
212212
self._compile(**kwargs)
213213

214214
@property
@@ -642,7 +642,7 @@ def compile(self) -> None:
642642
"""Compile the project. The kwargs provided during object initialization will be used.
643643
This function is useful when paired with the `crytic_defer_compilation` kwargs option.
644644
"""
645-
return self._compile(**self.compilation_kwargs)
645+
self._compile(**self.compilation_kwargs)
646646

647647
@staticmethod
648648
def _run_custom_build(custom_build: str) -> None:

0 commit comments

Comments
 (0)