mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Fix Codacy issues.
This commit is contained in:
parent
c4e81f2ea2
commit
d2624731d7
@ -501,11 +501,9 @@ public class ExtractedContent implements AutopsyVisitableItem {
|
||||
protected List<BlackboardArtifact> makeKeys() {
|
||||
if (skCase != null) {
|
||||
try {
|
||||
List<BlackboardArtifact> arts =
|
||||
Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true) ?
|
||||
blackboard.getArtifacts(type.getTypeID(), datasourceObjId) :
|
||||
skCase.getBlackboardArtifacts(type.getTypeID());
|
||||
return arts;
|
||||
return Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true)
|
||||
? blackboard.getArtifacts(type.getTypeID(), datasourceObjId)
|
||||
: skCase.getBlackboardArtifacts(type.getTypeID());
|
||||
} catch (TskException ex) {
|
||||
Logger.getLogger(ArtifactFactory.class.getName()).log(Level.SEVERE, "Couldn't get blackboard artifacts from database", ex); //NON-NLS
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import java.util.stream.Collectors;
|
||||
import org.openide.nodes.ChildFactory;
|
||||
import org.openide.nodes.Children;
|
||||
import org.openide.nodes.Node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user