mirror of
https://github.com/drone-plugins/drone-download.git
synced 2026-06-04 18:24:21 +08:00
(maint) cleaning build up with move to harness
This commit is contained in:
+1
-1
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user