Browse Source

avoid double warpping

Signed-off-by: divinerapier <poriter.coco@gmail.com>
pull/1020/head
divinerapier 5 years ago
parent
commit
9e3b77c3ad
  1. 3
      weed/filer2/filerstore.go

3
weed/filer2/filerstore.go

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

Loading…
Cancel
Save