Skip to content

Commit 9492d92

Browse files
xhochyzooba
andauthored
Don't join on empty values.
Co-authored-by: Steve Dower <[email protected]>
1 parent 859bfbd commit 9492d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/jit/_llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def _get_brew_llvm_prefix(*, echo: bool = False) -> str | None:
7070
@_async_cache
7171
async def _find_tool(tool: str, *, echo: bool = False) -> str | None:
7272
# Explicitly defined LLVM installation location
73-
if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
73+
if llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")):
7474
path = os.path.join(llvm_tools_dir, tool)
7575
if await _check_tool_version(path, echo=echo):
7676
return path

0 commit comments

Comments
 (0)