Skip to content

Commit

Permalink
Remove redundant std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
kuznetsss committed Nov 8, 2024
1 parent 95f9c92 commit b3f55c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/ng/Response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ makeData(http::status status, MessageType message, Request const& request)
}

if (not request.isHttp())
return std::move(body);
return body;

auto const& httpRequest = request.asHttpRequest()->get();
std::string const contentType = isString<MessageType>() ? "text/html" : "application/json";
Expand Down

0 comments on commit b3f55c1

Please sign in to comment.