From e67fe801323481b7f47191ab6d157d22dfa614e6 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 31 May 2021 08:16:10 +0300 Subject: [PATCH] [#552] cmd/ir: Remove redundant if-statements before exitErr calls `exitErr` function checks `err != nil` by itself. Signed-off-by: Leonard Lyubich --- cmd/neofs-ir/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/neofs-ir/main.go b/cmd/neofs-ir/main.go index 610f11245..edde0a5a8 100644 --- a/cmd/neofs-ir/main.go +++ b/cmd/neofs-ir/main.go @@ -63,9 +63,7 @@ func main() { httpServers := initHTTPServers(cfg) innerRing, err := innerring.New(ctx, log, cfg) - if err != nil { - exitErr(err) - } + 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) - } + exitErr(err) log.Info("application started", zap.String("build time", misc.Build),