mirror of
https://github.com/github/semantic.git
synced 2024-12-19 04:41:47 +03:00
Dedent.
This commit is contained in:
parent
bfd3aa8e0d
commit
31eef41359
@ -25,7 +25,7 @@ moduleForBlob :: Maybe FilePath -- ^ The root directory relative to which the mo
|
||||
moduleForBlob rootDir blob = Module (moduleNameForPath (modulePathForBlob blob)) (blobPath blob)
|
||||
where modulePathForBlob Blob{..} | Just Go <- blobLanguage = takeDirectory (modulePath blobPath)
|
||||
| otherwise = modulePath blobPath
|
||||
-- TODO: Need a better way to handle module registration and resolution
|
||||
-- TODO: Need a better way to handle module registration and resolution
|
||||
modulePath = dropExtensions . maybe takeFileName makeRelative rootDir
|
||||
|
||||
moduleNameForPath :: FilePath -> ModuleName
|
||||
|
Loading…
Reference in New Issue
Block a user