remove unnecessary conversion type
This commit is contained in:
parent
c5b5326480
commit
8644389d7e
@ -1078,9 +1078,7 @@ ${escapedMessage}
|
||||
if (layer.properties === undefined) {
|
||||
layer.properties = [];
|
||||
}
|
||||
const property = (layer.properties as ITiledMapLayerProperty[]).find(
|
||||
(property) => property.name === propertyName
|
||||
);
|
||||
const property = layer.properties.find((property) => property.name === propertyName);
|
||||
if (property === undefined) {
|
||||
layer.properties.push({ name: propertyName, type: typeof propertyValue, value: propertyValue });
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user