Replacing interface{} with any everywhere (except generated mocks) (#29446)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a21d470bee
Коммит
d316df6d28
@@ -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",
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user