Skip to content

Commit

Permalink
sset: small optimization/fix (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
barkbay authored Jul 22, 2019
1 parent 67b4429 commit c0194f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operators/pkg/controller/elasticsearch/sset/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func (l StatefulSetList) GetByName(ssetName string) (appsv1.StatefulSet, bool) {

func (l StatefulSetList) ObjectMetas() []metav1.ObjectMeta {
objs := make([]metav1.ObjectMeta, len(l))
for _, sset := range l {
objs = append(objs, sset.ObjectMeta)
for i, sset := range l {
objs[i] = sset.ObjectMeta
}
return objs
}
Expand Down

0 comments on commit c0194f6

Please sign in to comment.