cmd/packageEdit.go
Function editPackageConfig
has 8 return statements (exceeds 4 allowed). Open
Open
func editPackageConfig(packageLabel string) (err error) {
// Try to load the package; implicitly checks if a package is even associated to the given label.
pkg, err := session.packageService.LoadPackage(true, packageLabel)
if err != nil {
return fmt.Errorf("load package: %v", err)