Merge pull request #1020 from divinerapier/master

avoid double warpping
This commit is contained in:
Chris Lu authored and GitHub committed 2019-07-24 02:05:55 -07:00
commit f1e43fe274
1 file changed
+3
+3
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,
}