refactor(style): errs should not start with upper

This commit is contained in:
Roxie Gibson 2021-08-02 04:20:02 +01:00
parent a3f574a8fa
commit d777eb2af1
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func ParseSecretEnvVarName(secretEnvVar string) string {
func ParseSecretEnvVarValue(secretValue string) (SecretValue, error) {
values := strings.Split(secretValue, "#")
if len(values) == 0 {
return SecretValue{}, fmt.Errorf("Unable to parse '%s'", secretValue)
return SecretValue{}, fmt.Errorf("unable to parse '%s'", secretValue)
}
if len(values) == 1 {
return SecretValue{Version: values[0], Length: 0}, nil
@ -137,7 +137,7 @@ func GenerateSecrets(secretEnvVars map[string]string, appName, server string) (m
func PassInsertSecret(secretValue, secretName, appName, server string) error {
_, err := exec.LookPath("pass")
if err != nil {
return errors.New("Pass cannot be found on your $PATH, is it installed?")
return errors.New("pass cannot be found on your $PATH, is it installed?")
}
cmd := fmt.Sprintf(