From d48d88d4423f1d19eb85c2f58f2c9baeef641bd4 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni <6173598+dpschen@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:29:11 +0200 Subject: [PATCH] fix: comment typo and misspellings --- pkg/db/test.go | 2 +- pkg/routes/caldav/listStorageProvider.go | 8 ++++---- pkg/utils/write_to_zip.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/db/test.go b/pkg/db/test.go index 4c4859c8e..f9b4e4096 100644 --- a/pkg/db/test.go +++ b/pkg/db/test.go @@ -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) diff --git a/pkg/routes/caldav/listStorageProvider.go b/pkg/routes/caldav/listStorageProvider.go index 064ebb9bc..82843c783 100644 --- a/pkg/routes/caldav/listStorageProvider.go +++ b/pkg/routes/caldav/listStorageProvider.go @@ -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) } diff --git a/pkg/utils/write_to_zip.go b/pkg/utils/write_to_zip.go index 076244dc0..71f5ebd77 100644 --- a/pkg/utils/write_to_zip.go +++ b/pkg/utils/write_to_zip.go @@ -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 {