mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
rf: remove check for id
I think that there will always be an ID assigned to a layer, no need to check for one.
This commit is contained in:
@@ -182,10 +182,7 @@ def _parse_layer(
|
||||
Returns:
|
||||
FIXME
|
||||
"""
|
||||
if "id" in layer_element.attrib:
|
||||
id_ = int(layer_element.attrib["id"])
|
||||
else:
|
||||
id_ = None
|
||||
id_ = int(layer_element.attrib["id"])
|
||||
|
||||
if "name" in layer_element.attrib:
|
||||
name = layer_element.attrib["name"]
|
||||
|
||||
Reference in New Issue
Block a user