Skip to content

Commit

Permalink
Merge pull request #4916 from camptocamp/api_fixes
Browse files Browse the repository at this point in the history
Don't use 'in' operator with Map
  • Loading branch information
fredj committed May 29, 2019
2 parents 794a0c2 + 19c3460 commit 2cb3e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const capabilities = new Map();
* @return {Object} Any
*/
function getWMTSCapability(url) {
if (!(url in capabilities)) {
if (!capabilities.has(url)) {
const request = fetch(url)
.then(response => response.text())
.then((capability) => {
Expand Down

0 comments on commit 2cb3e0c

Please sign in to comment.