Skip to content

Commit 487719b

Browse files
committed
Minor issues in Encoder
1 parent fba8e78 commit 487719b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/mapcode/Encoder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,8 @@ else if (mapcoderData.isNameless()) { // auto-pipe 21/22
154154
if (!results.contains(newResult)) {
155155
if (limitToOneResult) {
156156
results.clear();
157-
results.add(newResult);
158-
}
159-
else {
160-
results.add(newResult);
161157
}
158+
results.add(newResult);
162159
}
163160
else {
164161
LOG.error("encode: Duplicate results found, newResult={}, results={} items",

0 commit comments

Comments
 (0)