mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Shut Codacy up.
This commit is contained in:
parent
60dae2406f
commit
1e4b6d2815
@ -165,19 +165,22 @@ public final class FileTypesByExtension implements AutopsyVisitableItem {
|
|||||||
* If a new file has been added but does not have an
|
* If a new file has been added but does not have an
|
||||||
* extension there is nothing to do.
|
* extension there is nothing to do.
|
||||||
*/
|
*/
|
||||||
if ((evt.getOldValue() instanceof ModuleContentEvent) == true) {
|
if ((evt.getOldValue() instanceof ModuleContentEvent) == false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
ModuleContentEvent moduleContentEvent = (ModuleContentEvent) evt.getOldValue();
|
ModuleContentEvent moduleContentEvent = (ModuleContentEvent) evt.getOldValue();
|
||||||
if ((moduleContentEvent.getSource() instanceof AbstractFile) == true) {
|
if ((moduleContentEvent.getSource() instanceof AbstractFile) == false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
AbstractFile abstractFile = (AbstractFile) moduleContentEvent.getSource();
|
AbstractFile abstractFile = (AbstractFile) moduleContentEvent.getSource();
|
||||||
if (!abstractFile.getNameExtension().isEmpty()) {
|
if (!abstractFile.getNameExtension().isEmpty()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (NoCurrentCaseException ex) {
|
} catch (NoCurrentCaseException ex) {
|
||||||
/**
|
/**
|
||||||
* Case is closed, do nothing.
|
* Case is closed, no refresh needed.
|
||||||
*/
|
*/
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user