From 0b15488f6fa67be2c5f6ae626cab8c129b588769 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 28 Apr 2016 09:50:39 +0200 Subject: [PATCH] Fix overzealous condition --- .../main/java/org/sonar/batch/scan/filesystem/FileIndexer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5