removing named return values

- avoiding confusion w long functions for naked returns
This commit is contained in:
jake 2025-06-04 23:22:10 -04:00
parent 5b32d09a27
commit d1a5de82fe

View File

@ -12,7 +12,7 @@ type Command struct {
// payload function type handling commands. The returned error is parsed and, if no error,
// is detected then the response string (res) will be sent in response to the command message
type Payload func(msg Message) (res string, err error)
type Payload func(msg Message) (string, error)
// contains the basic information needed for a message command
type Message struct {