mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-16 16:37:55 +00:00
Rename
This commit is contained in:
@@ -119,8 +119,8 @@ func (c *aclCache) Lookup(usernameOrEveryone, topic string) (read, write, found
|
|||||||
func (c *aclCache) pickBestNoLock(username, topic, escapedTopic string) (*aclEntry, bool) {
|
func (c *aclCache) pickBestNoLock(username, topic, escapedTopic string) (*aclEntry, bool) {
|
||||||
var best aclEntry
|
var best aclEntry
|
||||||
var found bool
|
var found bool
|
||||||
if m, exists := c.exact[username]; exists {
|
if exact, exists := c.exact[username]; exists {
|
||||||
if entry, exists := m[escapedTopic]; exists {
|
if entry, exists := exact[escapedTopic]; exists {
|
||||||
best, found = entry, true
|
best, found = entry, true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user