We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getAsset
1 parent 5d87af1 commit 0540b59Copy full SHA for 0540b59
services/cargohold/src/CargoHold/API/Federation.hs
@@ -59,6 +59,4 @@ streamAsset ga = do
59
AssetSource <$> S3.downloadV3 (F.gaKey ga)
60
61
getAsset :: F.GetAsset -> Handler F.GetAssetResponse
62
-getAsset ga = do
63
- available <- checkAsset ga
64
- pure $ F.GetAssetResponse {F.gaAvailable = available}
+getAsset = fmap F.GetAssetResponse . checkAsset
0 commit comments