[MM-23279] Idiomatic naming (IP) (#18152)

Этот коммит содержится в:
Ben Schumacher
2021-08-19 10:33:29 +02:00
коммит произвёл GitHub
родитель 8f01a1b5a1
Коммит e0f51f54e1
21 изменённых файлов: 36 добавлений и 36 удалений

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

@@ -918,7 +918,7 @@ func TestHookContext(t *testing.T) {
mockAPI.On("LoadPluginConfiguration", mock.Anything).Return(nil)
mockAPI.On("LogDebug", ctx.Session().Id).Return(nil)
mockAPI.On("LogInfo", ctx.RequestId()).Return(nil)
mockAPI.On("LogError", ctx.IpAddress()).Return(nil)
mockAPI.On("LogError", ctx.IPAddress()).Return(nil)
mockAPI.On("LogWarn", ctx.AcceptLanguage()).Return(nil)
mockAPI.On("DeleteTeam", ctx.UserAgent()).Return(nil)
@@ -939,7 +939,7 @@ func TestHookContext(t *testing.T) {
func (p *MyPlugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) {
p.API.LogDebug(c.SessionId)
p.API.LogInfo(c.RequestId)
p.API.LogError(c.IpAddress)
p.API.LogError(c.IPAddress)
p.API.LogWarn(c.AcceptLanguage)
p.API.DeleteTeam(c.UserAgent)
}