mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Fixed tautological error conditions
Drop error & nil checks where the value can not have changed.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c0eef3b401
commit
e88d798990
@@ -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 {
|
||||
|
Reference in New Issue
Block a user