Skip to content

Commit 587380c

Browse files
committed
fix: do not install clang-format when version is none
1 parent 2ba3176 commit 587380c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp_linter_hooks/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,5 @@ def is_installed(tool: str) -> Optional[Path]:
213213

214214
def ensure_installed(tool: str, version: Optional[str] = None) -> None:
215215
"""Ensure a tool is installed, resolving its version if necessary."""
216-
LOG.info("Ensuring %s is installed", tool)
217-
_install_tool(tool, version)
216+
if version is not None:
217+
_install_tool(tool, version)

0 commit comments

Comments
 (0)