Fix QF1011: could omit type ... from declaration; it will be inferred from the right-hand side (staticcheck)

This commit is contained in:
Holger Obermaier
2026-02-04 10:23:23 +01:00
parent 86710d9b4b
commit 159bee1e9f
4 changed files with 7 additions and 7 deletions

View File

@@ -161,8 +161,8 @@ func (c *metricCache) DeleteAggregation(name string) error {
// is the current one, index=1 the last interval and so on. Returns and empty array if a wrong index
// is given (negative index, index larger than configured number of total intervals, ...)
func (c *metricCache) GetPeriod(index int) (time.Time, time.Time, []lp.CCMessage) {
var start time.Time = time.Now()
var stop time.Time = time.Now()
start := time.Now()
stop := time.Now()
var metrics []lp.CCMessage
if index >= 0 && index < c.numPeriods {
pindex := c.curPeriod - index