[#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:
Leonard Lyubich 2021-05-31 08:16:10 +03:00 committed by Leonard Lyubich
parent 6b1916a529
commit e67fe80132

View file

@ -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),