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
commit f1e43fe274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,
}