mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
more dead code removal
This commit is contained in:
@@ -283,9 +283,6 @@ getPackageListR = do
|
|||||||
$ mapConcurrently (getServiceDetails settings packageMetadata Nothing) filteredServices'
|
$ mapConcurrently (getServiceDetails settings packageMetadata Nothing) filteredServices'
|
||||||
let (_, services) = partitionEithers serviceDetailResult
|
let (_, services) = partitionEithers serviceDetailResult
|
||||||
pure $ ServiceAvailableRes services
|
pure $ ServiceAvailableRes services
|
||||||
-- if null errors
|
|
||||||
-- then pure $ ServiceAvailableRes services
|
|
||||||
-- else sendResponseStatus status500 ("Errors acquiring service details: " <> show <$> errors)
|
|
||||||
|
|
||||||
Just packageVersionList -> case eitherDecode $ BS.fromStrict $ encodeUtf8 packageVersionList of
|
Just packageVersionList -> case eitherDecode $ BS.fromStrict $ encodeUtf8 packageVersionList of
|
||||||
Left e -> sendResponseStatus status400 ("could not parse query param \"ids\"" <> show e :: Text)
|
Left e -> sendResponseStatus status400 ("could not parse query param \"ids\"" <> show e :: Text)
|
||||||
@@ -301,72 +298,6 @@ getPackageListR = do
|
|||||||
-- @TODO fix _ error
|
-- @TODO fix _ error
|
||||||
let (_, services) = partitionEithers serviceDetailResult
|
let (_, services) = partitionEithers serviceDetailResult
|
||||||
pure $ ServiceAvailableRes services
|
pure $ ServiceAvailableRes services
|
||||||
-- if null errors
|
|
||||||
-- then pure $ ServiceAvailableRes services
|
|
||||||
-- else sendResponseStatus status500 ("Errors acquiring service details: " <> show <$> errors)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
where
|
where
|
||||||
getPackageDetails :: MonadIO m
|
getPackageDetails :: MonadIO m
|
||||||
=> (HM.HashMap PkgId ([Version], [CategoryTitle]))
|
=> (HM.HashMap PkgId ([Version], [CategoryTitle]))
|
||||||
|
|||||||
Reference in New Issue
Block a user