diff options
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/External.hs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Remote/External.hs b/Remote/External.hs index c5330f7ea..1a43a1ca7 100644 --- a/Remote/External.hs +++ b/Remote/External.hs @@ -434,10 +434,8 @@ checkurl :: External -> URLString -> Annex UrlContents checkurl external url = handleRequest external (CHECKURL url) Nothing $ \req -> case req of CHECKURL_CONTENTS sz f -> Just $ return $ UrlContents sz - (if null f then id else const f) - CHECKURL_MULTI l -> Just $ return $ UrlNested $ map mknested l + (if null f then Nothing else Just f) + CHECKURL_MULTI l -> Just $ return $ UrlMulti l CHECKURL_FAILURE errmsg -> Just $ error errmsg UNSUPPORTED_REQUEST -> error "CHECKURL not implemented by external special remote" _ -> Nothing - where - mknested (url', sz, f) = (url', UrlContents sz (const f)) |