Skip to content

Commit

Permalink
Merge pull request #3715 from Azure/hawkowl/fix-lint-errs-jul24
Browse files Browse the repository at this point in the history
Clean up some lint errors found on golangci-lint 1.59.1
  • Loading branch information
mociarain authored Jul 23, 2024
2 parents 18fa5ec + 821d548 commit 5cddf25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pkg/api/openshiftcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ const (
)

type VMSizeStruct struct {
CoreCount int
Family string
CoreCount int `json:"coreCount,omitempty"`
Family string `json:"family,omitempty"`
}

var (
Expand Down
12 changes: 6 additions & 6 deletions pkg/portal/cluster/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ type Taint struct {
}

type MachineResources struct {
CPU string
StorageVolume string
Memory string
Pods string
CPU string `json:"cpu"`
StorageVolume string `json:"storageVolume"`
Memory string `json:"memory"`
Pods string `json:"pods"`
}

type Volume struct {
Name string
Path string
Name string `json:"name"`
Path string `json:"path"`
}

type NodeInformation struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/azureclient/applens/applens_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (c *Client) executeAndEnsureSuccessResponse(request *policy.Request) (*http
return nil, err
}

successResponse := (response.StatusCode >= 200 && response.StatusCode < 300) || response.StatusCode == 304
successResponse := (response.StatusCode >= 200 && response.StatusCode < 300) || response.StatusCode == http.StatusNotModified
if successResponse {
return response, nil
}
Expand Down

0 comments on commit 5cddf25

Please sign in to comment.