summaryrefslogtreecommitdiffstats
path: root/models/issue_assignees_test.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2019-05-28 23:45:54 +0800
committerGitHub <noreply@github.com>2019-05-28 23:45:54 +0800
commit743697a549bda16508ab961ac79a8bc5bdca3bbd (patch)
tree23d40a210acd7b84dd62f6c5ec73dfea938faa5f /models/issue_assignees_test.go
parent31557b12744410633ceb6fc12b53fb09038cee35 (diff)
downloadgitea-743697a549bda16508ab961ac79a8bc5bdca3bbd.tar.gz
gitea-743697a549bda16508ab961ac79a8bc5bdca3bbd.zip
refactor: append, build variable and type switch (#4940)
* refactor: append, build variable and type switch * fix: remove redundant space.
Diffstat (limited to 'models/issue_assignees_test.go')
-rw-r--r--models/issue_assignees_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/issue_assignees_test.go b/models/issue_assignees_test.go
index 029c211a4b..d32f41737a 100644
--- a/models/issue_assignees_test.go
+++ b/models/issue_assignees_test.go
@@ -43,8 +43,7 @@ func TestUpdateAssignee(t *testing.T) {
assert.NoError(t, err)
var expectedAssignees []*User
- expectedAssignees = append(expectedAssignees, user2)
- expectedAssignees = append(expectedAssignees, user3)
+ expectedAssignees = append(expectedAssignees, user2, user3)
for in, assignee := range assignees {
assert.Equal(t, assignee.ID, expectedAssignees[in].ID)