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:
@@ -473,7 +473,6 @@ class WFS extends XMLFeature {
|
|||||||
node.setAttribute('service', 'WFS');
|
node.setAttribute('service', 'WFS');
|
||||||
node.setAttribute('version', this.version_);
|
node.setAttribute('version', this.version_);
|
||||||
let filter;
|
let filter;
|
||||||
if (options) {
|
|
||||||
if (options.handle) {
|
if (options.handle) {
|
||||||
node.setAttribute('handle', options.handle);
|
node.setAttribute('handle', options.handle);
|
||||||
}
|
}
|
||||||
@@ -510,7 +509,6 @@ class WFS extends XMLFeature {
|
|||||||
filter = bbox;
|
filter = bbox;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
node.setAttributeNS(
|
node.setAttributeNS(
|
||||||
XML_SCHEMA_INSTANCE_URI,
|
XML_SCHEMA_INSTANCE_URI,
|
||||||
'xsi:schemaLocation',
|
'xsi:schemaLocation',
|
||||||
|
|||||||
Reference in New Issue
Block a user