Skip to content

Commit

Permalink
Use helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Dec 14, 2017
1 parent 23d630f commit 82ef139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions store/crd/crd_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package crd

import (
"context"
"net/http"
"strings"
"time"

Expand Down Expand Up @@ -111,7 +110,7 @@ func (c *Store) AddSchemas(ctx context.Context, schemas ...*types.Schema) error
var allSchemas []*types.Schema

for _, schema := range schemas {
if schema.Store != nil || !contains(schema.CollectionMethods, http.MethodGet) {
if schema.Store != nil || !schema.CanList() {
continue
}

Expand Down

0 comments on commit 82ef139

Please sign in to comment.