mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-03-13 23:32:41 +00:00
services/repository/files/upload.go aktualisiert
This commit is contained in:
parent
f156c5d531
commit
40b050a3db
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func UploadRepoFiles(ctx context.Context, repo *repo_model.Repository, doer *use
|
|||
}
|
||||
|
||||
if len(opts.Files) != len(opts.FullPaths) {
|
||||
return nil
|
||||
return fmt.Errorf("The length of opts.Files and opts.FullPaths is not the same. This should never happen.")
|
||||
}
|
||||
|
||||
uploads := make([]*repo_model.Upload, len(opts.Files))
|
||||
|
|
Loading…
Reference in a new issue