Skip to content

Commit

Permalink
nonamederrors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
varunch77 committed Jan 6, 2025
1 parent 08b9d0f commit 2a63f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/outputs/cloudwatch/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ func resize(dist distribution.Distribution, listMaxSize int) (distList []distrib
}

func payload(datum *cloudwatch.MetricDatum, entity *cloudwatch.Entity) (size int) {

Check failure on line 102 in plugins/outputs/cloudwatch/util.go

View workflow job for this annotation

GitHub Actions / Check lint

named return "size" with type "int" found (nonamedreturns)
size += timestampSize

if entity != nil {
size += calculateEntitySize(*entity)
}

size += timestampSize

for _, dimension := range datum.Dimensions {
size += len(*dimension.Name) + len(*dimension.Value) + dimensionOverheads
}
Expand Down

0 comments on commit 2a63f71

Please sign in to comment.