1
0

Args website and message has swapped their places.

This commit is contained in:
Alexander Andreev 2022-10-21 03:01:01 +04:00
parent daaf872049
commit 059efc4004
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -15,7 +15,7 @@ type Entry struct {
Reply *Reply `json:"reply,omitempty"` Reply *Reply `json:"reply,omitempty"`
} }
func NewEntry(name, website, message string, hideWebsite bool) (*Entry, error) { func NewEntry(name, message, website string, hideWebsite bool) (*Entry, error) {
if name == "" || message == "" { if name == "" || message == "" {
return nil, errors.New("name and message field are required") return nil, errors.New("name and message field are required")
} }