summaryrefslogtreecommitdiffstats
path: root/deploy/deploy.go
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/deploy.go')
-rw-r--r--deploy/deploy.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/deploy/deploy.go b/deploy/deploy.go
index 26fac8975..7c496c72d 100644
--- a/deploy/deploy.go
+++ b/deploy/deploy.go
@@ -22,6 +22,7 @@ import (
"context"
"crypto/md5"
"encoding/hex"
+ "errors"
"fmt"
"io"
"mime"
@@ -33,8 +34,6 @@ import (
"strings"
"sync"
- "errors"
-
"github.com/dustin/go-humanize"
"github.com/gobwas/glob"
"github.com/gohugoio/hugo/common/loggers"
@@ -75,7 +74,6 @@ const metaMD5Hash = "md5chksum" // the meta key to store md5hash in
// New constructs a new *Deployer.
func New(cfg config.AllProvider, logger loggers.Logger, localFs afero.Fs) (*Deployer, error) {
-
dcfg := cfg.GetConfigSection(deploymentConfigKey).(DeployConfig)
targetName := dcfg.Target
@@ -675,8 +673,6 @@ func (d *Deployer) findDiffs(localFiles map[string]*localFile, remoteFiles map[s
} else if !bytes.Equal(lf.MD5(), remoteFile.MD5) {
upload = true
reason = reasonMD5Differs
- } else {
- // Nope! Leave uploaded = false.
}
found[path] = true
} else {