Removing redundant conditional

This commit is contained in:
Ethan Roseman 2019-11-26 13:37:55 -05:00
parent ca7af08a76
commit f24fb66c01

View File

@ -638,11 +638,6 @@ public final class KeywordSearchIngestModule implements FileIngestModule {
extractStringsAndIndex(aFile); extractStringsAndIndex(aFile);
return; return;
} }
if (fileType.equals(MimeTypes.PLAIN_TEXT)) {
if (indexTextFile(aFile)) {
return;
}
}
if (!extractTextAndIndex(aFile)) { if (!extractTextAndIndex(aFile)) {
// Text extractor not found for file. Extract string only. // Text extractor not found for file. Extract string only.
putIngestStatus(jobId, aFile.getId(), IngestStatus.SKIPPED_ERROR_TEXTEXTRACT); putIngestStatus(jobId, aFile.getId(), IngestStatus.SKIPPED_ERROR_TEXTEXTRACT);