Skip to content

Commit

Permalink
Fix apache#1234: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Feb 14, 2020
1 parent 14a3076 commit 82f2f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/trait/trait_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Catalog struct {

// NewCatalog creates a new trait Catalog
func NewCatalog(ctx context.Context, c client.Client) *Catalog {
var traitList []Trait
var traitList = make([]Trait, 0, len(FactoryList))
for _, factory := range FactoryList {
traitList = append(traitList, factory())
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/trait/trait_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
package trait

// Factory is a generic factory for a trait
type Factory = func()Trait
type Factory = func() Trait

// FactoryList contains the default list of trait Factory
var FactoryList []Factory
Expand Down

0 comments on commit 82f2f7a

Please sign in to comment.