Skip to content

Commit

Permalink
fix some code errors in fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jun 9, 2024
1 parent 83332f1 commit ac38863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tutorials/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ class $modify(MenuLayer) {
if (web::WebResponse* res = e->getValue()) {
log::info("{}", res->string()->unwrapOr("Uh oh!"));
} else if (web::WebProgress* p = e->getProgress()) {
log::info("progress: {}", p->downloadProgress().)
}
log::info("progress: {}", p->downloadProgress().value_or(0.f));
} else if (e->isCancelled()) {
log::info("The request was cancelled... So sad :(");
}
Expand Down

0 comments on commit ac38863

Please sign in to comment.