Browse Source

Merge pull request #1020 from divinerapier/master

avoid double warpping
pull/1021/head
Chris Lu 5 years ago
committed by GitHub
parent
commit
f1e43fe274
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      weed/filer2/filerstore.go

3
weed/filer2/filerstore.go

@ -34,6 +34,9 @@ type FilerStoreWrapper struct {
} }
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper { func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper {
if innerStore, ok := store.(*FilerStoreWrapper); ok {
return innerStore
}
return &FilerStoreWrapper{ return &FilerStoreWrapper{
actualStore: store, actualStore: store,
} }

Loading…
Cancel
Save