@@ -50,8 +50,7 @@ download :: String -> QueryBuilder -> Aff (SBTypes.Response Blob) -- [TODO] Make
5050download file qb = downloadImpl qb file # Promise.toAffE <#> convert
5151 where
5252 convert { "data": d, error: error } = do
53− let blob = Nullable.toMaybe d
54− { "data": blob, error: Nullable.toMaybe error, status: Nothing }
53+ { "data": Nullable.toMaybe d, error: Nullable.toMaybe error, status: Nothing }
5554
5655foreign import removeImpl :: QueryBuilder -> Array String -> Effect (Promise Foreign)
5756
@@ -64,5 +63,4 @@ createSignedUrl :: String -> Seconds -> QueryBuilder -> Aff (SBTypes.Response {
6463createSignedUrl file expiry qb = createSignedUrlImpl qb file expiry # Promise.toAffE <#> convert
6564 where
6665 convert { "data": d, error: error } = do
67− let blob = Nullable.toMaybe d
68− { "data": blob, error: Nullable.toMaybe error, status: Nothing }
66+ { "data": Nullable.toMaybe d, error: Nullable.toMaybe error, status: Nothing }