Skip to content

Conversation

@albaropereyra22
Copy link
Contributor

Fixed indentation and remove excessive lines.

Fixed indentation and remove excessive lines.
Copy link
Member

@marty1885 marty1885 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @albaropereyra22 Thanks for fixing our code style issues. I should have put more effort into them. Dang.

However, there's a thing I need you to change before I can merge it.

Comment on lines 105 to +112
<pre><code class="c++">using Callback = std::function&lt;void (const HttpResponsePtr &)&gt; ;

app().registerHandler("/", [](const HttpRequestPtr& req, Callback &&callback)
{
app().registerHandler("/", [](const HttpRequestPtr& req, Callback &&callback)
{
auto resp = HttpResponse::newHttpResponse();
resp->setBody("Hello World");
callback(resp);
});</code></pre>
});</code></pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@albaropereyra22 This lack of space is intended. These are C++ shown within a <pre> block. Which does not perform space collapsing. When added, theses indents will also show up in the web page.

Please revert the changes within pre blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants