Skip to content

Commit 4600fff

Browse files
committed
lint (re-indent RequestHandlerFunction callback)
1 parent 99c2321 commit 4600fff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/HttpHelpers/handlers.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ end
2121

2222
function state_handler(base_handler, state)
2323
return RequestHandlerFunction(
24-
function(request::HTTP.Request, args...)
25-
response = handle(base_handler, request, state, args...)
26-
if response.status == 200
24+
function(request::HTTP.Request, args...)
25+
response = handle(base_handler, request, state, args...)
26+
if response.status == 200
2727
HTTP.defaultheader!(response, "Content-Type" => HTTP.sniff(response.body))
2828
HTTP.defaultheader!(response, "Content-Length" => string(sizeof(response.body)))
29-
end
30-
return response
31-
end
29+
end
30+
return response
31+
end
3232
)
3333
end
3434

0 commit comments

Comments
 (0)