diff options
author | Christian Muehlhaeuser <[email protected]> | 2019-08-02 15:20:36 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-10 01:04:43 +0200 |
commit | e88d7989907108b656eccd92bccc076be72a5c03 (patch) | |
tree | 7a739f8d3debf252f1c804d08fe98965c95d0b5f /deploy | |
parent | c0eef3b401615e85bb74baee6a515abcf531fc2c (diff) | |
download | hugo-e88d7989907108b656eccd92bccc076be72a5c03.tar.gz hugo-e88d7989907108b656eccd92bccc076be72a5c03.zip |
Fixed tautological error conditions
Drop error & nil checks where the value can not have changed.
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/deploy.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/deploy/deploy.go b/deploy/deploy.go index 0512e352e..6abb9e24e 100644 --- a/deploy/deploy.go +++ b/deploy/deploy.go @@ -143,9 +143,6 @@ func (d *Deployer) Deploy(ctx context.Context) error { // Diff local vs remote to see what changes need to be applied. uploads, deletes := findDiffs(local, remote, d.force) - if err != nil { - return err - } d.summary.NumUploads = len(uploads) d.summary.NumDeletes = len(deletes) if len(uploads)+len(deletes) == 0 { |