Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 05:06:11 +01:00

chore: fix typos identified by mispell

This commit is contained in:
Earl Warren 2024-05-25 09:43:50 +02:00
parent 5d5ac041cd
commit c7711dac6d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 2 additions and 2 deletions

View file

@ -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'). // 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 { func IsEmptyCommitID(commitID string, objectFormat ObjectFormat) bool {
if commitID == "" { if commitID == "" {
return true return true

View file

@ -77,7 +77,7 @@ func (defaultHandler) NewRequest(ctx context.Context, w *webhook_model.Webhook,
// see https://codeberg.org/codeberg/community/issues/1556 // see https://codeberg.org/codeberg/community/issues/1556
payloadContent, err = substituteRefShortName(payloadContent) payloadContent, err = substituteRefShortName(payloadContent)
if err != nil { 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)
} }
} }