mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
simplify some code
This commit is contained in:
parent
06b6e1a89f
commit
7daab901b3
@ -87,12 +87,14 @@ public final class CommonAttributePanel extends javax.swing.JDialog {
|
||||
|
||||
private static boolean isEamDbAvailable() {
|
||||
try {
|
||||
return (EamDb.isEnabled() &&
|
||||
EamDb.getInstance() != null &&
|
||||
final boolean conditions = EamDb.isEnabled() &&
|
||||
EamDb.getInstance() != null &&
|
||||
EamDb.getInstance().getCases().size() > 1 &&
|
||||
Case.isCaseOpen() &&
|
||||
Case.getCurrentCase() != null &&
|
||||
EamDb.getInstance().getCase(Case.getCurrentCase()) != null);
|
||||
Case.getCurrentCase() != null &&
|
||||
EamDb.getInstance().getCase(Case.getCurrentCase()) != null;
|
||||
|
||||
return conditions;
|
||||
} catch (EamDbException ex) {
|
||||
LOGGER.log(Level.SEVERE, "Unexpected exception while checking for EamDB enabled.", ex);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user