macaroons: fix incorrect comparison in isRegistered, wrap long lines

This commit is contained in:
Oliver Gugger authored and Oliver Gugger committed 2018-05-18 10:14:06 +02:00
1 parent 3eff9804ee
commit f22b0ccdbc
3 files changed
+39 -26

No files matched your search

+3 -1
View File
@@ -85,7 +85,9 @@ func isRegistered(c *checkers.Checker, name string) bool {
}
for _, info := range c.Info() {
if info.Name == name && info.Prefix == "std" {
if info.Name == name &&
info.Prefix == "" &&
info.Namespace == "std" {
return true
}
}