From edaf14f2b6fd86f8dec99f67512a5c0095e391dc Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 5 Apr 2017 09:17:21 -0400 Subject: Refactoring: remove tool.TplName --- routers/repo/editor.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'routers/repo/editor.go') diff --git a/routers/repo/editor.go b/routers/repo/editor.go index 710e70df..a8ce490a 100644 --- a/routers/repo/editor.go +++ b/routers/repo/editor.go @@ -15,18 +15,18 @@ import ( "github.com/gogits/git-module" "github.com/gogits/gogs/models" - "github.com/gogits/gogs/pkg/tool" "github.com/gogits/gogs/pkg/context" "github.com/gogits/gogs/pkg/form" "github.com/gogits/gogs/pkg/setting" "github.com/gogits/gogs/pkg/template" + "github.com/gogits/gogs/pkg/tool" ) const ( - EDIT_FILE tool.TplName = "repo/editor/edit" - EDIT_DIFF_PREVIEW tool.TplName = "repo/editor/diff_preview" - DELETE_FILE tool.TplName = "repo/editor/delete" - UPLOAD_FILE tool.TplName = "repo/editor/upload" + EDIT_FILE = "repo/editor/edit" + EDIT_DIFF_PREVIEW = "repo/editor/diff_preview" + DELETE_FILE = "repo/editor/delete" + UPLOAD_FILE = "repo/editor/upload" ) // getParentTreeFields returns list of parent tree names and corresponding tree paths -- cgit v1.2.3