Skip to content

Commit 623ba13

Browse files
mmerdesrtroilo
authored andcommitted
#470: improve method implementation
1 parent dca6d6a commit 623ba13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oshdb/src/main/java/org/heigit/ohsome/oshdb/OSHDBTags.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ public boolean hasTag(int key, int value) {
143143
@Override
144144
public boolean hasTag(OSHDBTag tag) {
145145
for (int i = 0; i < tags.length; i += 2) {
146-
if (tags[i] == tag.getKey() && tags[i + 1] == tag.getValue()) {
147-
return true;
146+
if (tags[i] == tag.getKey()) {
147+
return tags[i + 1] == tag.getValue();
148148
}
149149
}
150150
return false;

0 commit comments

Comments
 (0)