Chore: Consolidate on golangci-lint (#25834)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-26 08:46:08 +02:00
committed by GitHub
parent 10715a1c79
commit 084542a006
13 changed files with 184 additions and 140 deletions
+2 -1
View File
@@ -292,7 +292,8 @@ func TestAccountDataAccess(t *testing.T) {
func testHelperUpdateDashboardAcl(dashboardId int64, items ...models.DashboardAcl) error {
cmd := models.UpdateDashboardAclCommand{DashboardId: dashboardId}
for _, item := range items {
for _, i := range items {
item := i
item.Created = time.Now()
item.Updated = time.Now()
cmd.Items = append(cmd.Items, &item)