diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go index 11ef9e0f14..5fe99defd5 100644 --- a/services/repository/files/upload.go +++ b/services/repository/files/upload.go @@ -60,7 +60,7 @@ func UploadRepoFiles(ctx context.Context, repo *repo_model.Repository, doer *use } if len(opts.Files) != len(opts.FullPaths) { - return fmt.Errorf("The length of opts.Files and opts.FullPaths is not the same. This should never happen.") + return fmt.Errorf("the length of opts.Files and opts.FullPaths is not the same") } uploads := make([]*repo_model.Upload, len(opts.Files))