mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
fix: comment typo and misspellings
This commit is contained in:
committed by
kolaente
parent
342bbd6192
commit
d48d88d442
@@ -107,7 +107,7 @@ func AssertExists(t *testing.T, table string, values map[string]interface{}, cus
|
||||
}
|
||||
}
|
||||
|
||||
// AssertMissing checks and asserts the nonexiste nce of certain entries in the db
|
||||
// AssertMissing checks and asserts the nonexistence of certain entries in the db
|
||||
func AssertMissing(t *testing.T, table string, values map[string]interface{}) {
|
||||
all := []map[string]interface{}{}
|
||||
err := x.Table(table).Where(values).Find(&all)
|
||||
|
||||
@@ -57,7 +57,7 @@ func (vcls *VikunjaCaldavProjectStorage) GetResources(rpath string, withChildren
|
||||
// It looks like we need to have the same handler for returning both the calendar home set and the user principal
|
||||
// Since the client seems to ignore the whatever is being returned in the first request and just makes a second one
|
||||
// to the same url but requesting the calendar home instead
|
||||
// The problem with this is caldav-go just return whatever ressource it gets and making that the requested path
|
||||
// The problem with this is caldav-go just return whatever resource it gets and making that the requested path
|
||||
// And for us here, there is no easy (I can think of at least one hacky way) to figure out if the client is requesting
|
||||
// the home or principal url. Ough.
|
||||
|
||||
@@ -166,7 +166,7 @@ func (vcls *VikunjaCaldavProjectStorage) GetResourcesByList(rpaths []string) (re
|
||||
defer s.Close()
|
||||
|
||||
// GetTasksByUIDs...
|
||||
// Parse these into ressources...
|
||||
// Parse these into resources...
|
||||
tasks, err := models.GetTasksByUIDs(s, uids, vcls.user)
|
||||
if err != nil {
|
||||
_ = s.Rollback()
|
||||
@@ -272,10 +272,10 @@ func (vcls *VikunjaCaldavProjectStorage) GetResource(rpath string) (*data.Resour
|
||||
return &r, true, nil
|
||||
}
|
||||
|
||||
// GetShallowResource gets a ressource without childs
|
||||
// GetShallowResource gets a resource without children
|
||||
// Since Vikunja has no children, this is the same as GetResource
|
||||
func (vcls *VikunjaCaldavProjectStorage) GetShallowResource(rpath string) (*data.Resource, bool, error) {
|
||||
// Since Vikunja has no childs, this just returns the same as GetResource()
|
||||
// Since Vikunja has no children, this just returns the same as GetResource()
|
||||
// FIXME: This should just get the project with no tasks whatsoever, nothing else
|
||||
return vcls.GetResource(rpath)
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ func WriteBytesToZip(filename string, data []byte, writer *zip.Writer) (err erro
|
||||
return
|
||||
}
|
||||
|
||||
// WriteFilesToZip writes a bunch of files from the db to a zip file. It exprects a map with the file id
|
||||
// WriteFilesToZip writes a bunch of files from the db to a zip file. It expects a map with the file id
|
||||
// as key and its content as io.ReadCloser.
|
||||
func WriteFilesToZip(files map[int64]io.ReadCloser, wr *zip.Writer) (err error) {
|
||||
for fid, file := range files {
|
||||
|
||||
Reference in New Issue
Block a user