diff options
author | Matthias Loibl <mail@matthiasloibl.com> | 2016-11-05 19:01:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-05 19:01:20 +0100 |
commit | a0e54c0512a764ab0f93eb2ee6b978fb736190b4 (patch) | |
tree | 784e84c939367a64b5bd5a7322a801dd83108642 /routers/repo/commit.go | |
parent | 91b589f2f0fb93f9f9882426c43c363276d2235a (diff) | |
parent | bd898a10f888005be990ebea2e6a845d09ef55f3 (diff) | |
download | gitea-a0e54c0512a764ab0f93eb2ee6b978fb736190b4.tar.gz gitea-a0e54c0512a764ab0f93eb2ee6b978fb736190b4.zip |
Merge pull request #84 from andreynering/gitea/fix-500-on-invalid-editorconfig
Refactor editorconfig middleware
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 5 |
1 files changed, 0 insertions, 5 deletions
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 |