Remove useless if statement on WFS writeGetFeature

Remove the if(options) {} statement as the options is not optional and
the further code expect to have this parameter.
This commit is contained in:
Benjamin Gerber
2020-11-16 06:14:25 +01:00
parent a56d9bbb51
commit 843010bfcf

View File

@@ -473,7 +473,6 @@ class WFS extends XMLFeature {
node.setAttribute('service', 'WFS');
node.setAttribute('version', this.version_);
let filter;
if (options) {
if (options.handle) {
node.setAttribute('handle', options.handle);
}
@@ -510,7 +509,6 @@ class WFS extends XMLFeature {
filter = bbox;
}
}
}
node.setAttributeNS(
XML_SCHEMA_INSTANCE_URI,
'xsi:schemaLocation',