Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pango/client): Rename occurencies of plugin field #175

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading