|
@@ -106,7 +106,7 @@ func (c *Client) Hello(localName string) error {
|
|
}
|
|
}
|
|
|
|
|
|
// cmd is a convenience function that sends a command and returns the response
|
|
// cmd is a convenience function that sends a command and returns the response
|
|
-func (c *Client) cmd(expectCode int, format string, args ...interface{}) (int, string, error) {
|
|
|
|
|
|
+func (c *Client) cmd(expectCode int, format string, args ...any) (int, string, error) {
|
|
id, err := c.Text.Cmd(format, args...)
|
|
id, err := c.Text.Cmd(format, args...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return 0, "", err
|
|
return 0, "", err
|