satisfy linter

This commit is contained in:
2026-07-07 10:24:59 +02:00
parent 2f77c27715
commit 02fe22b18f
2 changed files with 4 additions and 2 deletions

View File

@@ -152,11 +152,11 @@ func CcrFollowerShow(conf *cfg.Config, index string) error {
slog.Debug("ES result", "follower stats", res.Indices)
if len(res.Indices) == 0 {
return fmt.Errorf("cluster did not return any follower stats for index %w", index)
return fmt.Errorf("cluster did not return any follower stats for index %s", index)
}
if len(res.Indices[0].Shards) == 0 {
return fmt.Errorf("cluster did not return any shard stats on follower index %w", index)
return fmt.Errorf("cluster did not return any shard stats on follower index %s", index)
}
follower := res.Indices[0].Shards[0]