Add missing type annotation in ol.format.WMSCapabilities

The error reported by the compiler was:
```
ERR! compile src/ol/format/wmscapabilitiesformat.js:160: ERROR - inconsistent return type
ERR! compile found   : Array
ERR! compile required: (null|ol.Extent|undefined)
ERR! compile   return [
ERR! compile          ^
ERR! compile
```
This commit is contained in:
Frederic Junod
2015-09-07 10:05:12 +02:00
parent d702aad450
commit 4aa2369244

View File

@@ -157,10 +157,10 @@ ol.format.WMSCapabilities.readEXGeographicBoundingBox_ =
!goog.isDef(eastBoundLongitude) || !goog.isDef(northBoundLatitude)) {
return undefined;
}
return [
return /** @type {ol.Extent} */ ([
westBoundLongitude, southBoundLatitude,
eastBoundLongitude, northBoundLatitude
];
]);
};