mirror of
https://github.com/coredns/coredns.git
synced 2025-12-07 18:31:41 +01:00
pkg/debug: Update comment (#704)
We already lowercase before comparing. Fixes #447
This commit is contained in:
parent
30217a4cb2
commit
64640bd1a0
@ -7,7 +7,7 @@ const Name = "o-o.debug."
|
||||
|
||||
// IsDebug checks if name is a debugging name, i.e. starts with o-o.debug.
|
||||
// it returns the empty string if it is not a debug message, otherwise it will return the
|
||||
// name with o-o.debug. stripped off. Must be called with name lowercased.
|
||||
// name with o-o.debug. stripped off. Name will be lowercased before comparing.
|
||||
func IsDebug(name string) string {
|
||||
if len(name) == len(Name) {
|
||||
return ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user