mirror of https://github.com/apache/nifi.git
NIFI-2928: Fixed checkstyle violation in FetchFile
This closes #1180 Signed-off-by: Bryan Rosander <brosander@apache.org>
This commit is contained in:
parent
b7c6392183
commit
0841f14c18
|
@ -186,7 +186,8 @@ public class FetchFile extends AbstractProcessor {
|
|||
// Verify that file system is reachable and file exists
|
||||
Path filePath = file.toPath();
|
||||
if (!Files.exists(filePath) && !Files.notExists(filePath)){ // see https://docs.oracle.com/javase/tutorial/essential/io/check.html for more details
|
||||
getLogger().log(levelFileNotFound, "Could not fetch file {} from file system for {} because the existence of the file cannot be verified; routing to failure", new Object[] {file, flowFile});
|
||||
getLogger().log(levelFileNotFound, "Could not fetch file {} from file system for {} because the existence of the file cannot be verified; routing to failure",
|
||||
new Object[] {file, flowFile});
|
||||
session.transfer(session.penalize(flowFile), REL_FAILURE);
|
||||
return;
|
||||
} else if (!Files.exists(filePath)) {
|
||||
|
|
Loading…
Reference in New Issue