(maint) cleaning build up with move to harness

This commit is contained in:
TP Honey
2022-12-07 11:44:12 +00:00
parent 729d073d21
commit 6b60b2c813
4 changed files with 60 additions and 74 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ func (p *Plugin) Execute() error {
if exp != "" {
logrus.WithField("hash", alg).Info("Computing checksum")
target.Seek(0, 0)
_, _ = target.Seek(0, 0)
if _, err := io.Copy(h, target); err != nil {
defer os.Remove(target.Name())