mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Run gopls modernize on codebase (#34751)
				
					
				
			Recent modernize fixes: https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
This commit is contained in:
		| @@ -6,6 +6,7 @@ package queue | ||||
| import ( | ||||
| 	"context" | ||||
| 	"errors" | ||||
| 	"maps" | ||||
| 	"sync" | ||||
| 	"time" | ||||
|  | ||||
| @@ -70,9 +71,7 @@ func (m *Manager) ManagedQueues() map[int64]ManagedWorkerPoolQueue { | ||||
| 	defer m.mu.Unlock() | ||||
|  | ||||
| 	queues := make(map[int64]ManagedWorkerPoolQueue, len(m.Queues)) | ||||
| 	for k, v := range m.Queues { | ||||
| 		queues[k] = v | ||||
| 	} | ||||
| 	maps.Copy(queues, m.Queues) | ||||
| 	return queues | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user