mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-21 06:41:00 +00:00
parent
a1a307d858
commit
fb90e169cb
1 changed files with 5 additions and 1 deletions
|
|
@ -155,7 +155,11 @@ func (pr PluginRepository) Fetch() PluginPackages {
|
|||
TermMessage("Failed to decode repository data:\n", err)
|
||||
return PluginPackages{}
|
||||
}
|
||||
return plugins
|
||||
if len(plugins) > 0 {
|
||||
return PluginPackages{plugins[0]}
|
||||
}
|
||||
return nil
|
||||
// return plugins
|
||||
}
|
||||
|
||||
// UnmarshalJSON unmarshals raw json to a PluginVersion
|
||||
|
|
|
|||
Loading…
Reference in a new issue