misc: Fix typos and spelling errors

This commit is contained in:
Edward Toroshchyn
2025-02-24 15:59:00 +01:00
parent 1f90de31e7
commit c25a2a257b
40 changed files with 62 additions and 62 deletions

View File

@@ -230,13 +230,13 @@ func ParseIdentity(identity string) (name, comment, email string, err error) {
// get name
n := strings.Split(identity, " <")
if len(n) != 2 {
return "", "", "", errwrap.Wrapf(err, "user string mal formated")
return "", "", "", errwrap.Wrapf(err, "user string malformed")
}
// get email and comment
ec := strings.Split(n[1], "> ")
if len(ec) != 2 {
return "", "", "", errwrap.Wrapf(err, "user string mal formated")
return "", "", "", errwrap.Wrapf(err, "user string malformed")
}
return n[0], ec[1], ec[0], nil