From 4b3c4c0c2b88aa17a9b7822470e3e5dd2a3e7c2b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 9 Dec 2011 18:57:09 -0400 Subject: avoid some read --- Git.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Git.hs') diff --git a/Git.hs b/Git.hs index 84153be5d..8bc32b7cc 100644 --- a/Git.hs +++ b/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") -} -- cgit v1.2.3