[#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)
|
||||
|
||||
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),
|
||||
|
|
Loading…
Reference in a new issue