Refactor editorconfig middleware

This commit is contained in:
Andrey Nering committed 2016-11-05 15:44:14 -02:00
1 parent 91b589f2f0
commit bd898a10f8
5 files changed
+8 -27

No files matched your search

-5
View File
@@ -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