Skip to content

Commit faf25c7

Browse files
committed
fix: minor updates
1 parent 8ebeec0 commit faf25c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

core/src/main/java/org/owasp/dependencycheck/analyzer/CentralAnalyzer.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,10 @@ public void analyzeDependency(Dependency dependency, Engine engine) throws Analy
289289
} else {
290290
LOGGER.warn("Unable to download pom.xml for {} from Central; "
291291
+ "this could result in undetected CPE/CVEs.", dependency.getFileName());
292-
if (lastException != null) {
293-
setEnabled(false);
294-
LOGGER.warn("Disabling the Central Analyzer due to repeated download failures; Central Search " +
295-
"may be down see https://status.maven.org/\n Note that this could result in both false " +
296-
"positives and false negatives", lastException);
297-
}
292+
setEnabled(false);
293+
LOGGER.warn("Disabling the Central Analyzer due to repeated download failures; Central Search "
294+
+ "may be down see https://status.maven.org/\n Note that this could result in both false "
295+
+ "positives and false negatives", lastException);
298296
}
299297

300298
} catch (AnalysisException ex) {

0 commit comments

Comments
 (0)