From e98d821ae456601b55b6f81fd8a3ff944b98a0b9 Mon Sep 17 00:00:00 2001 From: harvv Date: Tue, 19 May 2015 20:40:03 -0700 Subject: [PATCH] fix small error (inverted logic) obvious error that prevents process() from running in the normal case; could be confusing to newcomers (which is who examples are really aimed toward) --- .../org/sleuthkit/autopsy/examples/SampleFileIngestModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/examples/SampleFileIngestModule.java b/Core/src/org/sleuthkit/autopsy/examples/SampleFileIngestModule.java index a6dc6af76b..e3420e0468 100755 --- a/Core/src/org/sleuthkit/autopsy/examples/SampleFileIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/examples/SampleFileIngestModule.java @@ -98,7 +98,7 @@ class SampleFileIngestModule implements FileIngestModule { @Override public IngestModule.ProcessResult process(AbstractFile file) { - if (attrId != -1) { + if (attrId == -1) { return IngestModule.ProcessResult.ERROR; }