MM-22355 - Fix typos detected by goreportcad.com (#13842)

* Update webhook_test.go

* Update user_test.go

* Update filesstore_test.go

* Update plugin_requests.go

* Update syncables.go

* Update helper.go

* Update html_entities.go

* Update user.go

* Update team.go

* Update notification.go

* Update notification_test.go

* Update plugin_api_test.go

* Update post_metadata.go

* Update channel_test.go

* Update database.go

* Update channel.go

* Update user_store.go

* Update team_test.go

* revert andd

* Revert back to infintie

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
JtheBAB
2020-03-02 17:10:41 +01:00
коммит произвёл GitHub
родитель 98ccc1ccf5
Коммит cd36c9f041
17 изменённых файлов: 19 добавлений и 19 удалений

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

@@ -209,7 +209,7 @@ func TestRenameTeam(t *testing.T) {
th.CheckCommand(t, "team", "rename", team2.Name, newTeamName, "--display_name", newDisplayName)
// No renaming should have occured
// No renaming should have occurred
require.Equal(t, team2.Name, n, "team was renamed when it should have not been")
require.Equal(t, team2.DisplayName, dn, "team display name was changed when it should have not been")

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

@@ -373,7 +373,7 @@ func userCreateCmdF(command *cobra.Command, args []string) error {
}
} else {
// This else case exists to prevent the first user created from being
// created as a system admin unless explicity specified.
// created as a system admin unless explicitly specified.
if _, err := a.UpdateUserRoles(ruser.Id, "system_user", false); err != nil {
return errors.New("If this is the first user: Unable to prevent user from being system admin. Error: " + err.Error())
}

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

@@ -291,7 +291,7 @@ func TestCreateOutgoingWebhook(t *testing.T) {
th.CheckCommand(t, "webhook", "create-outgoing", "--team", team, "--channel", th.BasicChannel.Id, "--display-name", displayName, "--trigger-word", triggerWord1, "--trigger-word", triggerWord2, "--url", callbackURL1, "--url", callbackURL2, "--user", user)
webhooks, err := th.App.GetOutgoingWebhooksPage(0, 1000)
require.Nil(t, err, "Unable to retreive outgoing webhooks")
require.Nil(t, err, "Unable to retrieve outgoing webhooks")
found := false
for _, webhook := range webhooks {