diff --git a/content/local/store.go b/content/local/store.go index 56f99bb09..9ff95de45 100644 --- a/content/local/store.go +++ b/content/local/store.go @@ -62,7 +62,7 @@ func NewStore(root string) (content.Store, error) { // require labels and should use `NewStore`. `NewLabeledStore` is primarily // useful for tests or standalone implementations. func NewLabeledStore(root string, ls LabelStore) (content.Store, error) { - if err := os.MkdirAll(filepath.Join(root, "ingest"), 0777); err != nil && !os.IsExist(err) { + if err := os.MkdirAll(filepath.Join(root, "ingest"), 0777); err != nil { return nil, err }