]> source.dussan.org Git - sonarqube.git/commitdiff
Fix overzealous condition
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 28 Apr 2016 07:50:39 +0000 (09:50 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 28 Apr 2016 07:50:39 +0000 (09:50 +0200)
sonar-scanner-engine/src/main/java/org/sonar/batch/scan/filesystem/FileIndexer.java

index 9ebf91886a04899d8856d97abe253ea25a398754..2d8ee157b9dec1a81ea34933a308de62b13d0031 100644 (file)
@@ -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;
       }