From c7711dac6d452e6787b989a0543a7424768c20c3 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 25 May 2024 09:43:50 +0200 Subject: [PATCH] chore: fix typos identified by mispell --- modules/git/object_id.go | 2 +- services/webhook/default.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/object_id.go b/modules/git/object_id.go index 26736bb766..ecbc1587d4 100644 --- a/modules/git/object_id.go +++ b/modules/git/object_id.go @@ -80,7 +80,7 @@ func NewIDFromString(hexHash string) (ObjectID, error) { } // IsEmptyCommitID checks if an hexadecimal string represents an empty commit according to git (only '0'). -// If objectFormat is not nil, the length will be checked as well (otherwise the lenght must match the sha1 or sha256 length). +// If objectFormat is not nil, the length will be checked as well (otherwise the length must match the sha1 or sha256 length). func IsEmptyCommitID(commitID string, objectFormat ObjectFormat) bool { if commitID == "" { return true diff --git a/services/webhook/default.go b/services/webhook/default.go index ea877698c8..089ff8bae3 100644 --- a/services/webhook/default.go +++ b/services/webhook/default.go @@ -77,7 +77,7 @@ func (defaultHandler) NewRequest(ctx context.Context, w *webhook_model.Webhook, // see https://codeberg.org/codeberg/community/issues/1556 payloadContent, err = substituteRefShortName(payloadContent) if err != nil { - return nil, nil, fmt.Errorf("could not substiture ref: %w", err) + return nil, nil, fmt.Errorf("could not substitute ref: %w", err) } }