remove redundant pattern match

brilliant spot by new ghc
This commit is contained in:
Joey Hess 2022-06-28 15:40:27 -04:00
parent cb9cf30c48
commit 543993b068
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -518,9 +518,7 @@ filterExport r tree = logExportExcluded (uuid r) $ \logwriter -> do
Nothing
| issymlink -> catKey sha >>= \case
Just _ -> return (Just ti)
Nothing
| issymlink -> excluded
| otherwise -> return (Just ti)
Nothing -> excluded
| otherwise -> return (Just ti)
Just matcher -> catKey sha >>= \case
Just k -> checkmatcher matcher k