refactor(style): errs should not start with upper
This commit is contained in:
parent
a3f574a8fa
commit
d777eb2af1
|
@ -68,7 +68,7 @@ func ParseSecretEnvVarName(secretEnvVar string) string {
|
||||||
func ParseSecretEnvVarValue(secretValue string) (SecretValue, error) {
|
func ParseSecretEnvVarValue(secretValue string) (SecretValue, error) {
|
||||||
values := strings.Split(secretValue, "#")
|
values := strings.Split(secretValue, "#")
|
||||||
if len(values) == 0 {
|
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 {
|
if len(values) == 1 {
|
||||||
return SecretValue{Version: values[0], Length: 0}, nil
|
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 {
|
func PassInsertSecret(secretValue, secretName, appName, server string) error {
|
||||||
_, err := exec.LookPath("pass")
|
_, err := exec.LookPath("pass")
|
||||||
if err != nil {
|
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(
|
cmd := fmt.Sprintf(
|
||||||
|
|
Loading…
Reference in New Issue