diff --git a/common/PathdbMods.js b/common/PathdbMods.js index b70f70ef..255abb91 100644 --- a/common/PathdbMods.js +++ b/common/PathdbMods.js @@ -110,8 +110,7 @@ async function PathDbMods() { text: response.statusText, url: response.url }; - let result = response.json().then(x=>convertPathDbSlide(x[0])).then(x => [x]) - return result; + return response.json().then(x=>convertPathDbSlide(x[0])).then(x => [x]); }) } Store.prototype.default_getSlide = Store.prototype.getSlide @@ -132,8 +131,7 @@ async function PathDbMods() { text: response.statusText, url: response.url }; - let result = response.json().then(convertPathDbSlide).then(x => [x]); - return result; + return response.json().then(convertPathDbSlide).then(x => [x]);; }) }