optimized (#392)

This commit is contained in:
kingxt
2021-01-15 11:36:37 +08:00
committed by GitHub
parent 6887fb22de
commit 4db20677f7
6 changed files with 21 additions and 2 deletions

View File

@@ -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]
}