Skip to content

Commit

Permalink
Avoid nil pointer defer (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonclay7 authored May 4, 2023
1 parent c69c278 commit a7f367c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/pkg/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ func (a *AMG) ListWorkspaces() ([]Workspace, error) {

for _, workspace := range response.Workspaces {
w := Workspace{
ID: *workspace.Id,
Name: *workspace.Name,
Version: *workspace.GrafanaVersion,
Endpoint: *workspace.Endpoint,
ID: aws.StringValue(workspace.Id),
Name: aws.StringValue(workspace.Name),
Version: aws.StringValue(workspace.GrafanaVersion),
Endpoint: aws.StringValue(workspace.Endpoint),
}
wx = append(wx, w)
}
Expand Down

0 comments on commit a7f367c

Please sign in to comment.