mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-27 21:00:05 +02: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) {
|
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))
|
uploads := make([]*repo_model.Upload, len(opts.Files))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue