New err check style
This commit is contained in:
parent
88072a1e9b
commit
8bc502a1ea
2 changed files with 8 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue