Skip to content

Commit a8d8ace

Browse files
authored
fix(code quality): Remove unnescessary error check in aggregator (#1009)
1 parent 4b2fabe commit a8d8ace

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

aggregator/cmd/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ func aggregatorMain(ctx *cli.Context) error {
5858
}()
5959

6060
err = aggregator.Start(context.Background())
61-
if err != nil {
62-
return err
63-
}
6461

65-
return nil
62+
return err
6663
}

aggregator/internal/pkg/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ func (agg *Aggregator) ServeOperators() error {
3333
agg.AggregatorConfig.Aggregator.ServerIpPortAddress)
3434

3535
err = http.ListenAndServe(agg.AggregatorConfig.Aggregator.ServerIpPortAddress, nil)
36-
if err != nil {
37-
return err
38-
}
3936

40-
return nil
37+
return err
4138
}
4239

4340
// Aggregator Methods

0 commit comments

Comments
 (0)