mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +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
|
||||
* extension there is nothing to do.
|
||||
*/
|
||||
if ((evt.getOldValue() instanceof ModuleContentEvent) == true) {
|
||||
ModuleContentEvent moduleContentEvent = (ModuleContentEvent) evt.getOldValue();
|
||||
if ((moduleContentEvent.getSource() instanceof AbstractFile) == true) {
|
||||
AbstractFile abstractFile = (AbstractFile) moduleContentEvent.getSource();
|
||||
if (!abstractFile.getNameExtension().isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if ((evt.getOldValue() instanceof ModuleContentEvent) == false) {
|
||||
return false;
|
||||
}
|
||||
ModuleContentEvent moduleContentEvent = (ModuleContentEvent) evt.getOldValue();
|
||||
if ((moduleContentEvent.getSource() instanceof AbstractFile) == false) {
|
||||
return false;
|
||||
}
|
||||
AbstractFile abstractFile = (AbstractFile) moduleContentEvent.getSource();
|
||||
if (!abstractFile.getNameExtension().isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
} catch (NoCurrentCaseException ex) {
|
||||
/**
|
||||
* Case is closed, do nothing.
|
||||
* Case is closed, no refresh needed.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user