1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00

Don't need this function

This commit is contained in:
Timothy Clem 2018-04-17 11:01:38 -07:00
parent 16d985ddea
commit 8d6942a6ba

View File

@ -29,10 +29,6 @@ resolveRubyPath path = do
modulePath <- resolve [name']
maybe (throwException @(ResolutionError value) $ RubyError name') pure modulePath
maybeFailNotFound :: MonadFail m => String -> Maybe a -> m a
maybeFailNotFound name = maybeFail notFound
where notFound = "Unable to resolve: " <> name
cleanNameOrPath :: ByteString -> String
cleanNameOrPath = BC.unpack . dropRelativePrefix . stripQuotes