mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +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:
		@@ -121,7 +121,7 @@ func (d *OneDevDownloader) LogString() string {
 | 
			
		||||
	return fmt.Sprintf("<OneDevDownloader %s [%d]/%s>", d.baseURL, d.repoID, d.repoName)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (d *OneDevDownloader) callAPI(endpoint string, parameter map[string]string, result interface{}) error {
 | 
			
		||||
func (d *OneDevDownloader) callAPI(endpoint string, parameter map[string]string, result any) error {
 | 
			
		||||
	u, err := d.baseURL.Parse(endpoint)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
@@ -400,9 +400,9 @@ func (d *OneDevDownloader) GetComments(commentable base.Commentable) ([]*base.Co
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	rawChanges := make([]struct {
 | 
			
		||||
		Date   time.Time              `json:"date"`
 | 
			
		||||
		UserID int64                  `json:"userId"`
 | 
			
		||||
		Data   map[string]interface{} `json:"data"`
 | 
			
		||||
		Date   time.Time      `json:"date"`
 | 
			
		||||
		UserID int64          `json:"userId"`
 | 
			
		||||
		Data   map[string]any `json:"data"`
 | 
			
		||||
	}, 0, 100)
 | 
			
		||||
 | 
			
		||||
	if context.IsPullRequest {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user