Merge pull request #1020 from divinerapier/master

avoid double warpping
This commit is contained in:
Chris Lu
2019-07-24 02:05:55 -07:00
committed by GitHub

View File

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