Skip to content

Commit

Permalink
refactor: remove uses of nolint:gocritic (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds authored Nov 18, 2024
1 parent 1135ee5 commit ae1af95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (v *VolumeAnalytics) Run(dataMap map[string]*matrix.Matrix) ([]*matrix.Matr
}
}

if len(atBytesUsedValues) == len(atBytesUsedPercentages) && len(atBytesUsedValues) == len(atBytesUsedLabels) { //nolint:gocritic
if len(atBytesUsedValues) == len(atBytesUsedPercentages) && len(atBytesUsedPercentages) == len(atBytesUsedLabels) {

for i, av := range atBytesUsedValues {
if av == "" {
Expand Down
3 changes: 1 addition & 2 deletions cmd/harvest/harvest.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@ func startPoller(pollerName string, promPort int, opts *options) {
// Start the poller process in the background
if err := cmd.Start(); err != nil {
fmt.Println(err)
closeDevNull(devNull) // os.Exit means closeDevNull will not run so call directly
os.Exit(1) //nolint:gocritic
defer os.Exit(1)
}
}

Expand Down

0 comments on commit ae1af95

Please sign in to comment.