Simplify
This commit is contained in:
parent
8324b29b42
commit
973b53afdc
|
@ -264,11 +264,10 @@ func ConfigLoad(proxy *Proxy, svcFlag *string, config_file string) error {
|
||||||
}
|
}
|
||||||
var stamp ServerStamp
|
var stamp ServerStamp
|
||||||
var err error
|
var err error
|
||||||
if len(serverConfig.Stamp) > 0 {
|
if len(serverConfig.Stamp) == 0 {
|
||||||
stamp, err = NewServerStampFromString(serverConfig.Stamp)
|
|
||||||
} else {
|
|
||||||
dlog.Fatalf("Missing stamp for the static [%s] definition", serverName)
|
dlog.Fatalf("Missing stamp for the static [%s] definition", serverName)
|
||||||
}
|
}
|
||||||
|
stamp, err = NewServerStampFromString(serverConfig.Stamp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue