mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)
editorconfig-core-go made breaking api changes and has recently released v2.1.1. This change consumes the new api and fixes up any breaking references.
This commit is contained in:
		@@ -136,7 +136,7 @@ func GetEditorconfig(ctx *context.APIContext) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	fileName := ctx.Params("filename")
 | 
			
		||||
	def := ec.GetDefinitionForFilename(fileName)
 | 
			
		||||
	def, _ := ec.GetDefinitionForFilename(fileName)
 | 
			
		||||
	if def == nil {
 | 
			
		||||
		ctx.NotFound(err)
 | 
			
		||||
		return
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user