Replacing interface{} with any everywhere (except generated mocks) (#29446)

Этот коммит содержится в:
Jesús Espino
2024-12-15 21:11:36 +01:00
коммит произвёл GitHub
родитель a21d470bee
Коммит d316df6d28
34 изменённых файлов: 96 добавлений и 96 удалений

Просмотреть файл

@@ -39,7 +39,7 @@ func TestRemoveEnvOverrides(t *testing.T) {
Enable: false,
},
}
in.PluginSettings.Plugins = map[string]map[string]interface{}{
in.PluginSettings.Plugins = map[string]map[string]any{
"com.mattermost.plugin-1": {
"key1": "value1",
},
@@ -71,7 +71,7 @@ func TestRemoveEnvOverrides(t *testing.T) {
Enable: true,
},
}
in.PluginSettings.Plugins = map[string]map[string]interface{}{
in.PluginSettings.Plugins = map[string]map[string]any{
"com.mattermost.plugin-1": {
"key1": "other-value",
},
@@ -166,9 +166,9 @@ func TestRemoveEnvOverrides(t *testing.T) {
Enable: true,
},
}
in.PluginSettings.Plugins = map[string]map[string]interface{}{
in.PluginSettings.Plugins = map[string]map[string]any{
"com.mattermost.plugin-1": {
"key": map[string]interface{}{
"key": map[string]any{
"key": "(?P<key>KEY)-(?P<id>\\d{1,6})(?P<comma>[,;]*)",
"value": "[$key-$id](https://example.com/?$project-$id)$comma",
},