Skip to content

Commit

Permalink
MGR-71 done right
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Sep 16, 2019
1 parent 0eb866c commit fec193f
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -17,7 +17,6 @@

import java.util.Collection;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;

import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -78,8 +77,10 @@ public Collection<String> getOrigins() {
}

private Collection<String> removeNulls(List<String> items) {
SortedSet<String> set = new TreeSet<>(items);
set.remove(null);
return set;
while(items.remove(null)) {
//do
}
return new TreeSet<>(items);
}

}

0 comments on commit fec193f

Please sign in to comment.