Skip to content

Commit e06b193

Browse files
committed
fix lint
1 parent 01035bd commit e06b193

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/repo/githttp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"bytes"
99
"compress/gzip"
1010
gocontext "context"
11+
"errors"
1112
"fmt"
1213
"net/http"
1314
"os"
@@ -203,7 +204,7 @@ func httpBase(ctx *context.Context) *serviceHandler {
203204
return nil
204205
}
205206
if !exist {
206-
ctx.ServerError("Load task repository", fmt.Errorf("repo not found"))
207+
ctx.ServerError("Load task repository", errors.New("repo not found"))
207208
return nil
208209
}
209210
actionsCfg := repo.MustGetUnit(ctx, unit.TypeActions).ActionsConfig()

0 commit comments

Comments
 (0)