diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-04-28 09:50:39 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-04-28 09:50:39 +0200 |
commit | 0b15488f6fa67be2c5f6ae626cab8c129b588769 (patch) | |
tree | 601e21fd00879fe8cff3ce6d4c5c2967b2a6b799 /sonar-scanner-engine | |
parent | d8edefbdfc628e02203bd7e8c7e7966a0f8080be (diff) | |
download | sonarqube-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.java | 2 |
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; } |