Skip to content
Permalink
Browse files

Update up.go (#646)

go lint redundant if ...; err != nil check
  • Loading branch information...
chemidy authored and tj committed Apr 14, 2018
1 parent 941b14a commit 34b201e4be8694c22c7940dcddbbe0324367de7d
Showing with 2 additions and 10 deletions.
  1. +2 −10 up.go
12 up.go
@@ -100,11 +100,7 @@ func (p *Project) Build() error {
return errors.Wrap(err, "building")
}

if err := p.RunHooks("postbuild"); err != nil {
return err
}

return nil
return p.RunHooks("postbuild")
}

// Deploy the project.
@@ -139,11 +135,7 @@ func (p *Project) deploy(d Deploy) error {
return err
}

if err := p.RunHooks("postdeploy"); err != nil {
return err
}

return nil
return p.RunHooks("postdeploy")
}

// Zip returns the zip if supported by the platform.

0 comments on commit 34b201e

Please sign in to comment.
You can’t perform that action at this time.