mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
Everywhere: Remove 'clang-format off' comments that are no longer needed
This commit is contained in:
parent
c911781c21
commit
996c020b0d
6 changed files with 42 additions and 57 deletions
|
@ -36,17 +36,15 @@ struct MatchedRoute {
|
|||
Vector<String> parameters;
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
// This would be formatted rather badly.
|
||||
#define ROUTE(method, path, handler) \
|
||||
Route { \
|
||||
HTTP::HttpRequest::method, \
|
||||
path, \
|
||||
[](auto& client, auto parameters, auto payload) { \
|
||||
return client.handler(parameters, move(payload)); \
|
||||
} \
|
||||
#define ROUTE(method, path, handler) \
|
||||
Route \
|
||||
{ \
|
||||
HTTP::HttpRequest::method, \
|
||||
path, \
|
||||
[](auto& client, auto parameters, auto payload) { \
|
||||
return client.handler(parameters, move(payload)); \
|
||||
} \
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-endpoints
|
||||
static constexpr auto s_webdriver_endpoints = Array {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue