engine: resource: gzip: Remove unneeded waitgroup

I think this was a copy+pasta mistake.
This commit is contained in:
James Shubin
2024-09-13 16:13:03 -04:00
parent 29eebd0d07
commit 1465c5cdc9

View File

@@ -39,7 +39,6 @@ import (
"os"
"path"
"strings"
"sync"
"github.com/purpleidea/mgmt/engine"
"github.com/purpleidea/mgmt/engine/traits"
@@ -223,9 +222,6 @@ func (obj *GzipRes) Cleanup() error {
// Watch is the primary listener for this resource and it outputs events.
func (obj *GzipRes) Watch(ctx context.Context) error {
wg := &sync.WaitGroup{}
defer wg.Wait()
recurse := false // single file
recWatcher, err := recwatch.NewRecWatcher(obj.getPath(), recurse)