mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
optimized (#392)
This commit is contained in:
@@ -170,6 +170,7 @@ func (r Route) GetAnnotation(key string) string {
|
||||
if r.Annotation.Properties == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return r.Annotation.Properties[key]
|
||||
}
|
||||
|
||||
@@ -177,6 +178,7 @@ func (g Group) GetAnnotation(key string) string {
|
||||
if g.Annotation.Properties == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return g.Annotation.Properties[key]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user