From 17d6448180fc32843aa8470371bf144b02ba89ae Mon Sep 17 00:00:00 2001 From: Jeffrey Frey Date: Wed, 30 Nov 2022 16:08:58 -0500 Subject: [PATCH] Fix unhandled return value from Wait() Discard return error from proc.Wait() to pass lint tests --- internal/pkg/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/util/util.go b/internal/pkg/util/util.go index 8cdad4a1..3f97fbb5 100644 --- a/internal/pkg/util/util.go +++ b/internal/pkg/util/util.go @@ -642,7 +642,7 @@ func FileGz( /* Execute the command: */ err = proc.Start() if err != nil { - proc.Wait() + _ = proc.Wait() gzippedFile.Close() os.Remove(file_gz) err = errors.Wrapf(err, "Unable to successfully execute compression program: %s", compressor)