mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-16 12:54:48 -07:00
fix some issues found with staticcheck.io
This commit is contained in:
@@ -5,7 +5,6 @@ package irc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/smtp"
|
||||
"strconv"
|
||||
@@ -480,7 +479,7 @@ func (am *AccountManager) dispatchCallback(client *Client, casefoldedAccount str
|
||||
} else if callbackNamespace == "mailto" {
|
||||
return am.dispatchMailtoCallback(client, casefoldedAccount, callbackValue)
|
||||
} else {
|
||||
return "", errors.New(fmt.Sprintf("Callback not implemented: %s", callbackNamespace))
|
||||
return "", fmt.Errorf("Callback not implemented: %s", callbackNamespace)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1262,7 +1261,6 @@ func (am *AccountManager) Logout(client *Client) {
|
||||
}
|
||||
}
|
||||
am.accountToClients[casefoldedAccount] = remainingClients
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user