Skip to content

Commit

Permalink
fix complaints in errcheck linter
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Miller <[email protected]>
  • Loading branch information
Aaron Miller committed Nov 7, 2023
1 parent 0b0e08c commit a747197
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions provider/resource_opensearch_channel_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,22 @@ func resourceOpensearchOpenDistroChannelConfigurationRead(d *schema.ResourceData

log.Printf("[DEBUG] Config ID from API: %v", configId)

d.Set("config_id", configId)
if err := d.Set("config_id", configId); err != nil {
return err
}

if _, ok := openDistroChannelConfigurationSchema["body"]; ok {
json, err := json.Marshal(res.ChannelConfigurationInfos[0])
if err != nil {
return err
}
d.Set("body", json)
if err := d.Set("body", json); err != nil {
return err
}
}

return nil
err = d.Set("body", channelConfigurationJsonNormalized)

Check failure on line 88 in provider/resource_opensearch_channel_configuration.go

View workflow job for this annotation

GitHub Actions / Runs go linters

undefined: channelConfigurationJsonNormalized (typecheck)
return err

}

Expand Down

0 comments on commit a747197

Please sign in to comment.