mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Replace interface{} with any (#25686)
				
					
				
			Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d).
			
			
This commit is contained in:
		@@ -29,7 +29,7 @@ type DetectedWorkflow struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	model.OnDecodeNodeError = func(node yaml.Node, out interface{}, err error) {
 | 
			
		||||
	model.OnDecodeNodeError = func(node yaml.Node, out any, err error) {
 | 
			
		||||
		// Log the error instead of panic or fatal.
 | 
			
		||||
		// It will be a big job to refactor act/pkg/model to return decode error,
 | 
			
		||||
		// so we just log the error and return empty value, and improve it later.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user