Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Danielc85804039d4c
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go
index eefdac9ce2..5b2b58220e 100644
--- a/kernel/model/bazzar.go
+++ b/kernel/model/bazzar.go
@@ -39,11 +39,9 @@ func BazaarPlugins(frontend, keyword string) (plugins []*bazaar.Plugin) {
for _, plugin := range plugins {
plugin.Installed = util.IsPathRegularDirOrSymlinkDir(filepath.Join(util.DataDir, "plugins", plugin.Name))
if plugin.Installed {
- if plugin.Installed {
- if pluginConf, err := bazaar.PluginJSON(plugin.Name); nil == err && nil != plugin {
- if plugin.Version != pluginConf.Version {
- plugin.Outdated = true
- }
+ if pluginConf, err := bazaar.PluginJSON(plugin.Name); nil == err && nil != plugin {
+ if plugin.Version != pluginConf.Version {
+ plugin.Outdated = true
}
}
}
@@ -112,11 +110,9 @@ func BazaarWidgets(keyword string) (widgets []*bazaar.Widget) {
for _, widget := range widgets {
widget.Installed = util.IsPathRegularDirOrSymlinkDir(filepath.Join(util.DataDir, "widgets", widget.Name))
if widget.Installed {
- if widget.Installed {
- if widgetConf, err := bazaar.WidgetJSON(widget.Name); nil == err && nil != widget {
- if widget.Version != widgetConf.Version {
- widget.Outdated = true
- }
+ if widgetConf, err := bazaar.WidgetJSON(widget.Name); nil == err && nil != widget {
+ if widget.Version != widgetConf.Version {
+ widget.Outdated = true
}
}
}