From 64a8e175681587198f6c69a9d90fe1549020c614 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Tue, 30 Apr 2024 13:03:49 +0200 Subject: [PATCH] lint --- pkg/analyze/stored.go | 2 +- pkg/analyze/wait.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analyze/stored.go b/pkg/analyze/stored.go index 4e0ba1041..1393f4bde 100644 --- a/pkg/analyze/stored.go +++ b/pkg/analyze/stored.go @@ -385,7 +385,7 @@ func (p *ParentDir) GetFiles() fs.Files { panic("m func (p *ParentDir) GetFilesLocked() fs.Files { panic("must not be called") } func (p *ParentDir) RLock() func() { panic("must not be called") } func (p *ParentDir) SetFiles(fs.Files) { panic("must not be called") } -func (f *ParentDir) RemoveFile(item fs.Item) { panic("must not be called") } +func (p *ParentDir) RemoveFile(item fs.Item) { panic("must not be called") } func (p *ParentDir) GetItemStats( linkedItems fs.HardLinkedItems, ) (int, int64, int64) { diff --git a/pkg/analyze/wait.go b/pkg/analyze/wait.go index 204921a54..f81b57740 100644 --- a/pkg/analyze/wait.go +++ b/pkg/analyze/wait.go @@ -19,7 +19,7 @@ func (s *WaitGroup) Init() *WaitGroup { // Add increments value func (s *WaitGroup) Add(value int) { s.access.Lock() - s.value = s.value + value + s.value += value s.access.Unlock() }