Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
update method variable name
  • Loading branch information
sachin120 committed Jan 5, 2024
1 parent 2266c07 commit 05605de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ func (d *Device) Delete(systemID string) error {
}

// SetWorkloadAnnotations add, modify or remove workload annotations for given Device
func (m *Device) SetWorkloadAnnotations(systemID string, params map[string]string) (*entity.Device, error) {
func (d *Device) SetWorkloadAnnotations(systemID string, params map[string]string) (*entity.Device, error) {
qsp := url.Values{}
for k, v := range params {
qsp.Add(k, v)
}

device := new(entity.Device)
err := m.client(systemID).Post("set_workload_annotations", qsp, func(data []byte) error {
err := d.client(systemID).Post("set_workload_annotations", qsp, func(data []byte) error {
return json.Unmarshal(data, &device)
})

Expand Down

0 comments on commit 05605de

Please sign in to comment.