mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08: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:
		@@ -177,7 +177,7 @@ func GetLastCommitForPaths(ctx context.Context, cache *LastCommitCache, c cgobje
 | 
			
		||||
	refSha := c.ID().String()
 | 
			
		||||
 | 
			
		||||
	// We do a tree traversal with nodes sorted by commit time
 | 
			
		||||
	heap := binaryheap.NewWith(func(a, b interface{}) int {
 | 
			
		||||
	heap := binaryheap.NewWith(func(a, b any) int {
 | 
			
		||||
		if a.(*commitAndPaths).commit.CommitTime().Before(b.(*commitAndPaths).commit.CommitTime()) {
 | 
			
		||||
			return 1
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user