Fix logical error
This commit is contained in:
parent
dcb27df1fc
commit
fed3f0c0fa
@ -47,16 +47,14 @@ fromArgsWith load = do
|
||||
let env = read
|
||||
$ capitalize
|
||||
$ if environment args /= ""
|
||||
then environment args
|
||||
else "development"
|
||||
then environment args
|
||||
else "development"
|
||||
|
||||
config <- load env
|
||||
|
||||
let c = if port args /= 0
|
||||
then config { appPort = port args }
|
||||
else config
|
||||
|
||||
return $ config
|
||||
return $ if port args /= 0
|
||||
then config { appPort = port args }
|
||||
else config
|
||||
|
||||
where
|
||||
argConfig :: ArgConfig
|
||||
|
||||
Loading…
Reference in New Issue
Block a user