mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 05:37:53 +08:00
Chore: use any rather than interface{} (#74066)
This commit is contained in:
@ -15,8 +15,8 @@ import (
|
||||
|
||||
// interpolateString accepts template data and return a string with substitutions
|
||||
func interpolateString(text string, data templateData) (string, error) {
|
||||
extraFuncs := map[string]interface{}{
|
||||
"orEmpty": func(v interface{}) interface{} {
|
||||
extraFuncs := map[string]any{
|
||||
"orEmpty": func(v any) any {
|
||||
if v == nil {
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user