mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
		| @@ -180,7 +180,7 @@ func (r *Repository) GetCommitsCount() (int64, error) { | ||||
| } | ||||
|  | ||||
| // GetCommitGraphsCount returns cached commit count for current view | ||||
| func (r *Repository) GetCommitGraphsCount(hidePRRefs bool, branches []string, files []string) (int64, error) { | ||||
| func (r *Repository) GetCommitGraphsCount(hidePRRefs bool, branches, files []string) (int64, error) { | ||||
| 	cacheKey := fmt.Sprintf("commits-count-%d-graph-%t-%s-%s", r.Repository.ID, hidePRRefs, branches, files) | ||||
|  | ||||
| 	return cache.GetInt64(cacheKey, func() (int64, error) { | ||||
| @@ -206,7 +206,7 @@ func (r *Repository) BranchNameSubURL() string { | ||||
| } | ||||
|  | ||||
| // FileExists returns true if a file exists in the given repo branch | ||||
| func (r *Repository) FileExists(path string, branch string) (bool, error) { | ||||
| func (r *Repository) FileExists(path, branch string) (bool, error) { | ||||
| 	if branch == "" { | ||||
| 		branch = r.Repository.DefaultBranch | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user