forked from TrueCloudLab/frostfs-node
[#552] cmd/ir: Remove redundant if-statements before exitErr calls
`exitErr` function checks `err != nil` by itself. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6b1916a529
commit
e67fe80132
1 changed files with 2 additions and 6 deletions
|
@ -63,9 +63,7 @@ func main() {
|
||||||
httpServers := initHTTPServers(cfg)
|
httpServers := initHTTPServers(cfg)
|
||||||
|
|
||||||
innerRing, err := innerring.New(ctx, log, cfg)
|
innerRing, err := innerring.New(ctx, log, cfg)
|
||||||
if err != nil {
|
|
||||||
exitErr(err)
|
exitErr(err)
|
||||||
}
|
|
||||||
|
|
||||||
if len(*validators) != 0 {
|
if len(*validators) != 0 {
|
||||||
validatorKeys, err := parsePublicKeysFromString(*validators)
|
validatorKeys, err := parsePublicKeysFromString(*validators)
|
||||||
|
@ -87,9 +85,7 @@ func main() {
|
||||||
|
|
||||||
// start inner ring
|
// start inner ring
|
||||||
err = innerRing.Start(ctx, intErr)
|
err = innerRing.Start(ctx, intErr)
|
||||||
if err != nil {
|
|
||||||
exitErr(err)
|
exitErr(err)
|
||||||
}
|
|
||||||
|
|
||||||
log.Info("application started",
|
log.Info("application started",
|
||||||
zap.String("build time", misc.Build),
|
zap.String("build time", misc.Build),
|
||||||
|
|
Loading…
Reference in a new issue