fix: minor typos (#9880)
While implementing #8222, a couple of typos slept through. This fixes them. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9880 Reviewed-by: Lucas <sclu1034@noreply.codeberg.org> Co-authored-by: oliverpool <git@olivier.pfad.fr> Co-committed-by: oliverpool <git@olivier.pfad.fr>
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func GetBlobs(ctx *context.APIContext) {
|
||||
// swagger:operation GET /repos/{owner}/{repo}/git/blobs repository GetBlobs
|
||||
// ---
|
||||
// summary: Gets multiplbe blobs of a repository.
|
||||
// summary: Gets multiple blobs of a repository.
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
|
||||
@@ -509,7 +509,7 @@ func wikiContentsByEntry(ctx *context.APIContext, entry *git.TreeEntry) string {
|
||||
blob := entry.Blob()
|
||||
content, err := blob.GetContentBase64(setting.API.DefaultMaxBlobSize)
|
||||
if err != nil && !errors.As(err, &git.BlobTooLargeError{}) {
|
||||
ctx.Error(http.StatusInternalServerError, "GetBlobContentBase64", err)
|
||||
ctx.Error(http.StatusInternalServerError, "GetContentBase64", err)
|
||||
return ""
|
||||
}
|
||||
return content
|
||||
|
||||
Generated
+1
-1
@@ -8210,7 +8210,7 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Gets multiplbe blobs of a repository.",
|
||||
"summary": "Gets multiple blobs of a repository.",
|
||||
"operationId": "GetBlobs",
|
||||
"parameters": [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 The Forgejo Authors c/o Codeberg e.V.. All rights reserved.
|
||||
// Copyright 2025 The Forgejo Authors c/o Codeberg e.V.. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package integration
|
||||
|
||||
Reference in New Issue
Block a user