Remove unnecessary typecasts in constructors options

This commit is contained in:
Frederic Junod
2019-06-03 09:08:41 +02:00
parent a9e1ebccd3
commit 50343afa61
8 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class ImageArcGISRest extends ImageSource {
*/
constructor(opt_options) {
const options = opt_options || /** @type {Options} */ ({});
const options = opt_options ? opt_options : {};
super({
attributions: options.attributions,