avoid some read
This commit is contained in:
parent
28699c95a7
commit
4b3c4c0c2b
3 changed files with 9 additions and 4 deletions
2
Git.hs
2
Git.hs
|
@ -345,7 +345,7 @@ urlPort :: Repo -> Maybe Integer
|
|||
urlPort r =
|
||||
case urlAuthPart uriPort r of
|
||||
":" -> Nothing
|
||||
(':':p) -> Just (read p)
|
||||
(':':p) -> readMaybe p
|
||||
_ -> Nothing
|
||||
|
||||
{- Hostname of an URL repo, including any username (ie, "user@host") -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue