Fixed lint
continuous-integration/drone/push Build was killed Details

This commit is contained in:
konrad 2019-05-14 23:54:37 +02:00
parent abe71802a0
commit d523807b8d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ func (vcls *VikunjaCaldavListStorage) GetResourcesByList(rpaths []string) ([]dat
rr := VikunjaListResourceAdapter{
task: t,
}
r := data.NewResource(getTaskUrl(t), &rr)
r := data.NewResource(getTaskURL(t), &rr)
r.Name = t.Text
resources = append(resources, r)
}
@ -143,7 +143,7 @@ func (vcls *VikunjaCaldavListStorage) GetResourcesByFilters(rpath string, filter
isCollection: false,
isUpdatingATask: vcls.isUpdatingATask,
}
r := data.NewResource(getTaskUrl(t), &rr)
r := data.NewResource(getTaskURL(t), &rr)
r.Name = t.Text
resources = append(resources, r)
}
@ -162,7 +162,7 @@ func (vcls *VikunjaCaldavListStorage) GetResourcesByFilters(rpath string, filter
//return vcls.GetResources(rpath, false)
}
func getTaskUrl(task *models.ListTask) string {
func getTaskURL(task *models.ListTask) string {
return ListBasePath + "/" + strconv.FormatInt(task.ListID, 10) + `/` + task.UID + `.ics`
}