Skip to content

Commit

Permalink
add missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 9, 2025
1 parent f4b5598 commit fb5b0d9
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions common/PathdbMods.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ async function PathDbMods() {
})
}).then(function(response) {
console.log(response);
if (!response.ok)
if (!response.ok) {
console.log("response not ok", response.statusText);
return {
error: !response.ok,
text: response.statusText,
url: response.url
};
error: !response.ok,
text: response.statusText,
url: response.url
};
}
return response.json().then(x=>convertPathDbSlide(x[0])).then(x => [x]);
})
}
Expand All @@ -124,13 +125,14 @@ async function PathDbMods() {
})
}).then(function(response) {
console.log(response);
if (!response.ok)
if (!response.ok){
console.log("response not ok", response.statusText);
return {
error: !response.ok,
text: response.statusText,
url: response.url
};
error: !response.ok,
text: response.statusText,
url: response.url
};
}
return response.json().then(convertPathDbSlide).then(x => [x]);;
})
}
Expand Down

0 comments on commit fb5b0d9

Please sign in to comment.