Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

Format code

This commit is contained in:
Mai-Lapyst 2024-03-28 05:42:25 +01:00
parent 16a8658878
commit 6e98bacbbd
No known key found for this signature in database
GPG key ID: F88D929C09E239F8
3 changed files with 1 additions and 6 deletions

View file

@ -688,7 +688,7 @@ func TestRender_FilePreview(t *testing.T) {
gitRepo, err := git.OpenRepository(git.DefaultContext, "./tests/repo/repo1_filepreview")
require.NoError(t, err)
defer gitRepo.Close()
commit, err := gitRepo.GetCommit("HEAD")
require.NoError(t, err)

View file

@ -8,7 +8,6 @@ import (
"context"
"errors"
"fmt"
// "html/template"
"io"
"net/url"
"path/filepath"

View file

@ -7,16 +7,12 @@ import (
"context"
"fmt"
// "html/template"
// "io"
"code.gitea.io/gitea/models/perm/access"
"code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unit"
"code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/gitrepo"
// "code.gitea.io/gitea/modules/highlight"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
gitea_context "code.gitea.io/gitea/services/context"