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:
parent
16d985ddea
commit
8d6942a6ba
@ -29,10 +29,6 @@ resolveRubyPath path = do
|
|||||||
modulePath <- resolve [name']
|
modulePath <- resolve [name']
|
||||||
maybe (throwException @(ResolutionError value) $ RubyError name') pure modulePath
|
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 :: ByteString -> String
|
||||||
cleanNameOrPath = BC.unpack . dropRelativePrefix . stripQuotes
|
cleanNameOrPath = BC.unpack . dropRelativePrefix . stripQuotes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user