Fix some unecessary branches to appease golint (#999)

This commit is contained in:
Sean Gillespie 2018-03-05 16:15:09 -08:00 committed by GitHub
parent 410351f571
commit 93cc2cd5cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,11 +156,7 @@ func removeOldConfiguration(stackName tokens.QName) error {
return err
}
if err := workspace.SaveProject(proj); err != nil {
return err
}
return nil
return workspace.SaveProject(proj)
}
// removeOldProjectConfiguration deletes all project level configuration information from both the workspace and the
@ -183,9 +179,5 @@ func removeOldProjectConfiguration() error {
return err
}
if err := workspace.SaveProject(proj); err != nil {
return err
}
return nil
return workspace.SaveProject(proj)
}