Skip to content

Commit

Permalink
Follow-up fix to SDK client
Browse files Browse the repository at this point in the history
  • Loading branch information
kklimonda-cl committed Oct 7, 2024
1 parent c5f0b94 commit 44f730e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/pango/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Client struct {
// Variables determined at runtime.
Version version.Number `json:"-"`
systemInfo map[string]string `json:"-"`
plugins []plugin.Info `json:"-"`
plugins []plugin.Info `json:"-"`

// Internal variables.
con *http.Client
Expand Down Expand Up @@ -92,13 +92,13 @@ func (c *Client) SystemInfo(ctx context.Context) (map[string]string, error) {
}

func (c *Client) Plugins(ctx context.Context) ([]plugin.Info, error) {
if c.plugin == nil {
if c.plugins == nil {
if err := c.RetrievePlugins(ctx); err != nil {
return nil, err
}
}

return c.plugin, nil
return c.plugins, nil
}

// GetTarget returns the Target param, used in certain API calls.
Expand Down Expand Up @@ -460,7 +460,7 @@ func (c *Client) RetrievePlugins(ctx context.Context) error {
return err
}

c.plugin = ans.Listing()
c.plugins = ans.Listing()

return nil
}
Expand Down

0 comments on commit 44f730e

Please sign in to comment.