Skip to content
Permalink
Browse files

gently unfuck example refmt

  • Loading branch information...
glennsl committed May 31, 2018
1 parent 5d217aa commit f663aa3b98c92656cfcfbd259766e205965ed42c
Showing with 4 additions and 7 deletions.
  1. +4 −7 examples/reason_examples.re
@@ -24,9 +24,7 @@ let _ =
|> then_(opt => Belt.Option.getExn(opt) |> resolve)
|> then_(items =>
items
|> Js.Array.map(item =>
item |> Js.Json.decodeString |> Belt.Option.getExn
)
|> Js.Array.map(item => item |> Js.Json.decodeString |> Belt.Option.getExn)
|> resolve
)
);
@@ -40,11 +38,10 @@ let _ = {
"/api/hello",
Fetch.RequestInit.make(
~method_=Post,
~body=
Fetch.BodyInit.make(Js.Json.stringify(Js.Json.object_(payload))),
~body=Fetch.BodyInit.make(Js.Json.stringify(Js.Json.object_(payload))),
~headers=Fetch.HeadersInit.make({"Content-Type": "application/json"}),
(),
),
()
)
)
|> then_(Fetch.Response.json)
);

0 comments on commit f663aa3

Please sign in to comment.
You can’t perform that action at this time.