libpod: add a nolint:wastedassign annotation

TODO: figure this out :)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-04-01 15:12:21 -07:00
parent 5f582e9f11
commit 421ee18e18

View File

@ -35,7 +35,7 @@ func (c *Container) getPlatformContainerStats(stats *define.ContainerStats, prev
// in a new jail
if dur, ok := entries["wallclock"]; ok {
if previousStats.Duration > dur*1000000000 {
previousStats = &define.ContainerStats{}
previousStats = &define.ContainerStats{} //nolint:wastedassign // TODO: figure this out.
}
}