Skip to content

Commit

Permalink
refactor: remove unused block
Browse files Browse the repository at this point in the history
Signed-off-by: Jude Niroshan <jude.niroshan11@gmail.com>
  • Loading branch information
JudeNiroshan committed May 8, 2024
1 parent 2f6e193 commit 421aee9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,14 @@ List<PythonDependency> getDependencyTreeJsonFromPipDepTree() {
executeCommandOrExtractFromEnv(
"EXHORT_PIP_PIPDEPTREE", pipBinaryLocation, "install", "pipdeptree");

String pipdeptreeJsonString;
String pipdeptreeJsonString = "";
if (isVirtualEnv()) {
pipdeptreeJsonString =
executeCommandOrExtractFromEnv("EXHORT_PIP_PIPDEPTREE", "./bin/pipdeptree", "--json");
} else if (isRealEnv()) {
pipdeptreeJsonString =
executeCommandOrExtractFromEnv(
"EXHORT_PIP_PIPDEPTREE", pathToPythonBin, "-m", "pipdeptree", "--json");
} else {
pipdeptreeJsonString =
executeCommandOrExtractFromEnv(
"EXHORT_PIP_PIPDEPTREE", "./bin/pipdeptree", "--json", "--python", pathToPythonBin);
}
if (debugLoggingIsNeeded()) {
String pipdeptreeMessage =
Expand Down

0 comments on commit 421aee9

Please sign in to comment.