Skip to content

Commit

Permalink
query router: is_available check -> add missing return *this
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Sep 3, 2024
1 parent 13606c6 commit fc37a37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/net/web_server/query_router.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct query_router {
Fn&& fn) {
if constexpr (Available<Fn>) {
if (!fn.is_available()) {
return;
return *this;
}
}

Expand Down Expand Up @@ -96,7 +96,7 @@ struct query_router {
query_router& post(std::string const& path_regex, Fn&& fn) {
if constexpr (Available<Fn>) {
if (!fn.is_available()) {
return;
return *this;
}
}

Expand Down Expand Up @@ -128,7 +128,7 @@ struct query_router {
query_router& get(std::string const& path_regex, Fn&& fn) {
if constexpr (Available<Fn>) {
if (!fn.is_available()) {
return;
return *this;
}
}

Expand Down

0 comments on commit fc37a37

Please sign in to comment.