From bd898a10f888005be990ebea2e6a845d09ef55f3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 5 Nov 2016 13:58:53 -0200 Subject: Refactor editorconfig middleware --- routers/repo/commit.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'routers/repo/commit.go') diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 4a4d4b1231..041247939c 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -179,11 +179,6 @@ func Diff(ctx *context.Context) { } } - setEditorconfigIfExists(ctx) - if ctx.Written() { - return - } - ctx.Data["CommitID"] = commitID ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split" ctx.Data["Username"] = userName -- cgit v1.2.3