Skip to content

code quality - innecessary error check in Go code #954

Description

@entropidelic
  1. In aggregator/cmd/main.go, function aggregatorMain():
err=aggregator.Start(context.Background())
iferr!=nil {
returnerr
}
returnnil

err can be returned directly.

  1. In aggregator/internal/pkg/server.go, function serveOperators(). Same pattern,
err=http.ListenAndServe(agg.AggregatorConfig.Aggregator.ServerIpPortAddress, nil)
iferr!=nil {
returnerr
}
returnnil
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions