Skip to content

Commit f3e7785

Browse files
authored
Fix mypy error
1 parent 99ad465 commit f3e7785

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crytic_compile/crytic_compile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ def __init__(self, target: Union[str, AbstractPlatform], **kwargs: str) -> None:
145145
# Note: line 1 is at index 0
146146
self._cached_line_to_code: Dict[Filename, List[bytes]] = {}
147147

148-
if kwargs.get("cwd") is not None:
149-
self._working_dir = Path(kwargs.get("cwd"))
148+
custom_cwd = kwargs.get("cwd")
149+
if custom_cwd is not None:
150+
self._working_dir = Path(custom_cwd)
150151
else:
151152
self._working_dir = Path.cwd()
152153

0 commit comments

Comments
 (0)