[#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)
innerRing, err := innerring.New(ctx, log, cfg)
if err != nil {
exitErr(err)
}
if len(*validators) != 0 {
validatorKeys, err := parsePublicKeysFromString(*validators)
@ -87,9 +85,7 @@ func main() {
// start inner ring
err = innerRing.Start(ctx, intErr)
if err != nil {
exitErr(err)
}
log.Info("application started",
zap.String("build time", misc.Build),