mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	golint fixed for routers/repo/middlewares.go (#204)
This commit is contained in:
		@@ -8,6 +8,7 @@ import (
 | 
			
		||||
	"code.gitea.io/gitea/modules/context"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// SetEditorconfigIfExists set editor config as render variable
 | 
			
		||||
func SetEditorconfigIfExists(ctx *context.Context) {
 | 
			
		||||
	ec, err := ctx.Repo.GetEditorconfig()
 | 
			
		||||
 | 
			
		||||
@@ -22,6 +23,7 @@ func SetEditorconfigIfExists(ctx *context.Context) {
 | 
			
		||||
	ctx.Data["Editorconfig"] = ec
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SetDiffViewStyle set diff style as render variable
 | 
			
		||||
func SetDiffViewStyle(ctx *context.Context) {
 | 
			
		||||
	queryStyle := ctx.Query("style")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user