mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
Everywhere: Remove 'clang-format off' comments that are no longer needed
This commit is contained in:
parent
c911781c21
commit
996c020b0d
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/trflynn89
Commit: 996c020b0d
Pull-request: https://github.com/SerenityOS/serenity/pull/19876
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/BertalanD
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