mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 16:03:20 +02:00
New err check style
This commit is contained in:
1 parent
88072a1e9b
commit
8bc502a1ea
2 files changed
+8
-17
No files matched your search
@@ -134,7 +134,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
}
|
||||
|
||||
entry, err := ctx.Repo.Commit.GetTreeEntryByPath(treename)
|
||||
|
||||
if err != nil && err != git.ErrNotExist {
|
||||
ctx.Handle(404, "repo.Single(GetTreeEntryByPath)", err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user