Skip to content

Commit

Permalink
Small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git authored and jirik committed Sep 21, 2023
1 parent 0c5c91b commit 9b400e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geoserver/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ def post_workspace_sld_style(geoserver_workspace, layername, sld_file, launder_f
else:
sld_content_type = 'application/vnd.ogc.sld+xml'

propertname_els = tree.findall('.//{http://www.opengis.net/ogc}PropertyName')
if launder_function:
propertname_els = tree.findall('.//{http://www.opengis.net/ogc}PropertyName')
for element in propertname_els:
element.text = launder_function(element.text)

Expand Down

0 comments on commit 9b400e3

Please sign in to comment.