Skip to content

Commit

Permalink
rm extra diff
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Jan 15, 2024
1 parent 52ee43c commit 7b0741c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/openmaptiles/OpenMapTilesProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ public List<MultiExpression.Match<RowDispatch>> getTableMatches(SourceFeature in
public boolean caresAboutWikidataTranslation(OsmElement elem) {
var tags = elem.tags();
if (elem instanceof OsmElement.Node) {
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POINT, tags, 0), false);
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POINT, tags), false);
} else if (elem instanceof OsmElement.Way) {
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POLYGON, tags, 0), false) ||
wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_LINE, tags, 0), false);
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POLYGON, tags), false) ||
wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_LINE, tags), false);
} else if (elem instanceof OsmElement.Relation) {
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POLYGON, tags, 0), false);
return wikidataMappings.getOrElse(SimpleFeature.create(EMPTY_POLYGON, tags), false);
} else {
return false;
}
Expand Down

0 comments on commit 7b0741c

Please sign in to comment.