Skip to content

Commit 18686e8

Browse files
committed
Fix: fantomas
1 parent ea511b6 commit 18686e8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Giraffe/Core.fs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ module Core =
275275
/// <param name="next"></param>
276276
/// <param name="ctx"></param>
277277
/// <returns>A Giraffe <see cref="HttpHandler"/> function which can be composed into a bigger web application.</returns>
278-
let safeRedirectToExt (permanent: bool) (location: string) (invalidRedirectHandler: HttpHandler option) : HttpHandler =
278+
let safeRedirectToExt
279+
(permanent: bool)
280+
(location: string)
281+
(invalidRedirectHandler: HttpHandler option)
282+
: HttpHandler =
279283
fun (_next: HttpFunc) (ctx: HttpContext) ->
280284
if isValidRedirectUrl ctx location then
281285
ctx.Response.Redirect(location, permanent)
@@ -301,7 +305,8 @@ module Core =
301305
/// <param name="next"></param>
302306
/// <param name="ctx"></param>
303307
/// <returns>A Giraffe <see cref="HttpHandler"/> function which can be composed into a bigger web application.</returns>
304-
let safeRedirectTo (permanent: bool) (location: string) : HttpHandler = safeRedirectToExt permanent location None
308+
let safeRedirectTo (permanent: bool) (location: string) : HttpHandler =
309+
safeRedirectToExt permanent location None
305310

306311
/// <summary>
307312
/// Redirects to a different location with a `302` or `301` (when permanent) HTTP status code.

0 commit comments

Comments
 (0)