Skip to content

Commit 6c09fe3

Browse files
committed
Merge pull request #112 from ProgrammingLife3/fix/genomeFilter2
Fix ternary statement in genome filter
2 parents 82c9efc + d897a2e commit 6c09fe3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/tudelft/ti2806/pl3/data/filter/GenomeFilter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,10 @@ public boolean equals(Object o) {
6161

6262
GenomeFilter that = (GenomeFilter) o;
6363

64-
if (genomes != null ? !genomes.equals(that.genomes) : that.genomes != null) {
65-
return false;
64+
if (this.genomes == null) {
65+
return that.genomes == null;
6666
}
67-
68-
return true;
67+
return genomes.equals(that.genomes);
6968
}
7069

7170
@Override

0 commit comments

Comments
 (0)