Skip to content

Commit fd059fe

Browse files
joeybloggsjoeybloggs
authored andcommitted
remove unnecessary carriage returns
for #44
1 parent 6365853 commit fd059fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

validator.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
tagKeySeparator = "="
2626
structOnlyTag = "structonly"
2727
omitempty = "omitempty"
28-
fieldErrMsg = "Field validation for \"%s\" failed on the \"%s\" tag\n"
28+
fieldErrMsg = "Field validation for \"%s\" failed on the \"%s\" tag"
2929
structErrMsg = "Struct:%s\n"
3030
)
3131

@@ -65,12 +65,14 @@ func (e *StructErrors) Error() string {
6565

6666
for _, err := range e.Errors {
6767
buff.WriteString(err.Error())
68+
buff.WriteString("\n")
6869
}
6970

7071
for _, err := range e.StructErrors {
7172
buff.WriteString(err.Error())
73+
buff.WriteString("\n\n")
7274
}
73-
buff.WriteString("\n\n")
75+
7476
return buff.String()
7577
}
7678

0 commit comments

Comments
 (0)