Lint: Fix violations of non-constant format string in call (#14974)

* Fix violations of non-constant format string in call

* Changelog fragment
This commit is contained in:
Preston Van Loon
2025-02-21 13:46:19 -06:00
committed by GitHub
parent 9bceaa59d2
commit 014dbd5c3a
18 changed files with 35 additions and 45 deletions

View File

@@ -220,7 +220,7 @@ func buildResponse(
func (c *beaconApiValidatorClient) indexToLiveness(ctx context.Context, epoch primitives.Epoch, indexes []string) (map[string]bool, error) {
livenessResponse, err := c.liveness(ctx, epoch, indexes)
if err != nil || livenessResponse.Data == nil {
return nil, errors.Wrapf(err, fmt.Sprintf("failed to get liveness for epoch %d", epoch))
return nil, errors.Wrapf(err, "failed to get liveness for epoch %d", epoch)
}
indexToLiveness := make(map[string]bool, len(livenessResponse.Data))