File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -358,19 +358,15 @@ runAction opts = do
358358 -> return n
359359 _ -> fail $ " bad port number " ++ show str
360360
361- checkHostURI :: ServerConfig -> Maybe String -> Int -> IO URI
362361 checkHostURI defaults Nothing port = do
363362 let guessURI = confHostUri defaults
364- case uriAuthority guessURI of
365- Nothing -> fail " No URI Authority"
366- Just authority -> let
363+ Just authority = uriAuthority guessURI
367364 portStr | port == 80 = " "
368365 | otherwise = ' :' : show port
369366 guessURI' = guessURI { uriAuthority = Just authority { uriPort = portStr } }
370- in do
371- lognotice verbosity $ " Guessing public URI as " ++ show guessURI'
367+ lognotice verbosity $ " Guessing public URI as " ++ show guessURI'
372368 ++ " \n (you can override with the --base-uri= flag)"
373- return guessURI'
369+ return guessURI'
374370
375371 checkHostURI _ (Just str) _ = case parseAbsoluteURI str of
376372 Nothing -> fail $ " Cannot parse as a URI: " ++ str ++ " \n "
You can’t perform that action at this time.
0 commit comments