Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
@ -27,7 +27,7 @@ type CompareInfo struct {
|
||||
}
|
||||
|
||||
// GetMergeBase checks and returns merge base of two branches and the reference used as base.
|
||||
func (repo *Repository) GetMergeBase(tmpRemote string, base, head string) (string, string, error) {
|
||||
func (repo *Repository) GetMergeBase(tmpRemote, base, head string) (string, string, error) {
|
||||
if tmpRemote == "" {
|
||||
tmpRemote = "origin"
|
||||
}
|
||||
|
Reference in New Issue
Block a user