mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
cleanup for warnings by staticcheck
the warnings that remained were either unused code that i wanted to use in the future, or other type's of todo's. i've been mentally ignoring them, assuming i would get back to them soon enough to fix them. but that hasn't happened yet, and it's better to have a clean list with only actual isses.
This commit is contained in:
@ -1072,16 +1072,6 @@ func (c *Conn) xnamespaceDescr() NamespaceDescr {
|
||||
return NamespaceDescr{prefix, b, exts}
|
||||
}
|
||||
|
||||
// require one of caps to be enabled.
|
||||
func (c *Conn) xneedEnabled(msg string, caps ...Capability) {
|
||||
for _, cap := range caps {
|
||||
if _, ok := c.CapEnabled[cap]; ok {
|
||||
return
|
||||
}
|
||||
}
|
||||
c.xerrorf("%s: need one of following enabled capabilities: %v", msg, caps)
|
||||
}
|
||||
|
||||
// require all of caps to be disabled.
|
||||
func (c *Conn) xneedDisabled(msg string, caps ...Capability) {
|
||||
for _, cap := range caps {
|
||||
|
Reference in New Issue
Block a user