Bläddra i källkod

:bug: After uninstalling the plugin, data synchronization does not uninstall it https://github.com/siyuan-note/siyuan/issues/11277

Daniel 1 år sedan
förälder
incheckning
d0022293c8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      kernel/model/repository.go

+ 1 - 1
kernel/model/repository.go

@@ -2018,7 +2018,7 @@ func getCloudSpace() (stat *cloud.Stat, err error) {
 }
 }
 
 
 func pushReloadPlugin(upsertPluginSet, removePluginNameSet *hashset.Set) {
 func pushReloadPlugin(upsertPluginSet, removePluginNameSet *hashset.Set) {
-	var upsertPlugins, removePlugins []string
+	upsertPlugins, removePlugins := []string{}, []string{}
 	for _, n := range upsertPluginSet.Values() {
 	for _, n := range upsertPluginSet.Values() {
 		upsertPlugins = append(upsertPlugins, n.(string))
 		upsertPlugins = append(upsertPlugins, n.(string))
 	}
 	}