Skip to content

Commit 8a2d921

Browse files
xhochyzooba
andcommitted
Don't join on empty values.
Co-authored-by: Steve Dower <[email protected]>
1 parent 92616cf commit 8a2d921

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
@@ -73,7 +73,7 @@ async def _get_brew_llvm_prefix(llvm_version: str, *, echo: bool = False) -> str
7373
@_async_cache
7474
async def _find_tool(tool: str, llvm_version: str, *, echo: bool = False) -> str | None:
7575
# Explicitly defined LLVM installation location
76-
if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
76+
if llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")):
7777
path = os.path.join(llvm_tools_dir, tool)
7878
if await _check_tool_version(path, llvm_version, echo=echo):
7979
return path

0 commit comments

Comments
 (0)