Skip to content

Commit 755dbf4

Browse files
committed
remove redundant else
1 parent 02db34f commit 755dbf4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cpp_linter_hooks/util.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ def _install_tool(tool: str, version: str) -> Optional[Path]:
6868
)
6969
if result.returncode == 0:
7070
return shutil.which(tool)
71-
else:
72-
LOG.error("pip failed to install %s %s", tool, version)
73-
LOG.error(result.stdout)
74-
LOG.error(result.stderr)
75-
return None
71+
LOG.error("pip failed to install %s %s", tool, version)
72+
LOG.error(result.stdout)
73+
LOG.error(result.stderr)
74+
return None
7675

7776

7877
def resolve_install(tool: str, version: Optional[str]) -> Optional[Path]:

0 commit comments

Comments
 (0)