We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c17552f + 742407a commit e0046a0Copy full SHA for e0046a0
mage/git.go
@@ -39,10 +39,7 @@ func CheckGitConfigExists() (bool, error) {
39
)
40
41
stream, err := userName.RunSuccessOutput()
42
- if err != nil {
43
- return false, errors.Wrapf(err, "getting git %s", gitConfigNameKey)
44
- }
45
- if stream.OutputTrimNL() == "" {
+ if err != nil || stream.OutputTrimNL() == "" {
46
return false, nil
47
}
48
@@ -55,10 +52,7 @@ func CheckGitConfigExists() (bool, error) {
55
52
56
53
57
54
stream, err = userEmail.RunSuccessOutput()
58
59
- return false, errors.Wrapf(err, "getting git %s", gitConfigEmailKey)
60
61
62
63
64
0 commit comments