@@ -13,7 +13,6 @@ import (
1313 "strings"
1414
1515 "code.gitea.io/gitea/modules/log"
16- "code.gitea.io/gitea/modules/util"
1716
1817 "github.com/djherbis/buffer"
1918 "github.com/djherbis/nio/v3"
@@ -36,7 +35,7 @@ func ensureValidGitRepository(ctx context.Context, repoPath string) error {
3635 Stderr : & stderr ,
3736 })
3837 if err != nil {
39- return util . ConcatenateError (err , (& stderr ).String ())
38+ return ConcatenateError (err , (& stderr ).String ())
4039 }
4140 return nil
4241}
@@ -72,8 +71,8 @@ func catFileBatchCheck(ctx context.Context, repoPath string) (WriteCloserError,
7271 UseContextTimeout : true ,
7372 })
7473 if err != nil {
75- _ = batchStdoutWriter .CloseWithError (util . ConcatenateError (err , (& stderr ).String ()))
76- _ = batchStdinReader .CloseWithError (util . ConcatenateError (err , (& stderr ).String ()))
74+ _ = batchStdoutWriter .CloseWithError (ConcatenateError (err , (& stderr ).String ()))
75+ _ = batchStdinReader .CloseWithError (ConcatenateError (err , (& stderr ).String ()))
7776 } else {
7877 _ = batchStdoutWriter .Close ()
7978 _ = batchStdinReader .Close ()
@@ -120,8 +119,8 @@ func catFileBatch(ctx context.Context, repoPath string) (WriteCloserError, *bufi
120119 UseContextTimeout : true ,
121120 })
122121 if err != nil {
123- _ = batchStdoutWriter .CloseWithError (util . ConcatenateError (err , (& stderr ).String ()))
124- _ = batchStdinReader .CloseWithError (util . ConcatenateError (err , (& stderr ).String ()))
122+ _ = batchStdoutWriter .CloseWithError (ConcatenateError (err , (& stderr ).String ()))
123+ _ = batchStdinReader .CloseWithError (ConcatenateError (err , (& stderr ).String ()))
125124 } else {
126125 _ = batchStdoutWriter .Close ()
127126 _ = batchStdinReader .Close ()
0 commit comments