We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba3176 commit 587380cCopy full SHA for 587380c
cpp_linter_hooks/util.py
@@ -213,5 +213,5 @@ def is_installed(tool: str) -> Optional[Path]:
213
214
def ensure_installed(tool: str, version: Optional[str] = None) -> None:
215
"""Ensure a tool is installed, resolving its version if necessary."""
216
- LOG.info("Ensuring %s is installed", tool)
217
- _install_tool(tool, version)
+ if version is not None:
+ _install_tool(tool, version)
0 commit comments