mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: fix some small issues detected by golangci-lint
But not using it as some linters are either plain incorrect (the one suggesting to not use nil for `c.t.Context()`) or just debatable (checking for err value is a good practice, but there are good reasons to opt out in some cases).
This commit is contained in:
@@ -277,11 +277,11 @@ func (c *Component) graphHandlerFunc(gc *gin.Context) {
|
||||
lastTimeForAxis[axis] = result.Time
|
||||
}
|
||||
rowKey := fmt.Sprintf("%d-%s", axis, result.Dimensions)
|
||||
row, ok := points[axis][rowKey]
|
||||
_, ok = points[axis][rowKey]
|
||||
if !ok {
|
||||
// Not points for this row yet, create it
|
||||
rows[axis][rowKey] = result.Dimensions
|
||||
row = make([]int, len(output.Time))
|
||||
row := make([]int, len(output.Time))
|
||||
points[axis][rowKey] = row
|
||||
sums[axis][rowKey] = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user