aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2016-04-28 09:50:39 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2016-04-28 09:50:39 +0200
commit0b15488f6fa67be2c5f6ae626cab8c129b588769 (patch)
tree601e21fd00879fe8cff3ce6d4c5c2967b2a6b799 /sonar-scanner-engine
parentd8edefbdfc628e02203bd7e8c7e7966a0f8080be (diff)
downloadsonarqube-0b15488f6fa67be2c5f6ae626cab8c129b588769.tar.gz
sonarqube-0b15488f6fa67be2c5f6ae626cab8c129b588769.zip
Fix overzealous condition
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java
index 9ebf91886a0..2d8ee157b9d 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java
@@ -225,7 +225,7 @@ public class FileIndexer {
@Override
public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {
- if (exc != null && exc instanceof FileSystemLoopException) {
+ if (exc instanceof FileSystemLoopException) {
LOG.warn("Not indexing due to symlink loop: {}", file.toFile());
return FileVisitResult.CONTINUE;
}