Args website and message has swapped their places.
This commit is contained in:
parent
daaf872049
commit
059efc4004
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user