mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 11:14:17 +02:00
satisfy linter
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user