diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 14:10:09 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 14:10:09 +0200 |
commit | 2eaf8b69e82603093b56ace5fdedbdc0249e77a0 (patch) | |
tree | 22ecc819dd52808dae66eb4017618df6877e2de9 /irc/tokens.go | |
parent | Random code improvements/tidying (diff) |
More lints
Diffstat (limited to '')
-rw-r--r-- | irc/tokens.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/irc/tokens.go b/irc/tokens.go index aa5d4b6..f7569a1 100644 --- a/irc/tokens.go +++ b/irc/tokens.go @@ -22,7 +22,7 @@ func CasemapASCII(name string) string { return sb.String() } -// CasemapASCII of name is the canonical representation of name according to the +// CasemapRFC1459 of name is the canonical representation of name according to the // rfc-1459 casemapping. func CasemapRFC1459(name string) string { var sb strings.Builder @@ -57,7 +57,7 @@ func word(s string) (word, rest string) { return } -// tagEscape returns the the value of '\c' given c according to the message-tags +// tagEscape returns the value of '\c' given c according to the message-tags // specification. func tagEscape(c rune) (escape rune) { switch c { @@ -157,13 +157,6 @@ var ( errIncompleteMessage = errors.New("message is incomplete") ) -var ( - errEmptyBatchID = errors.New("empty BATCH ID") - errNoPrefix = errors.New("missing prefix") - errNotEnoughParams = errors.New("not enough params") - errUnknownCommand = errors.New("unknown command") -) - type Prefix struct { Name string User string |