summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/upstream_helper.go
diff options
context:
space:
mode:
authorLuka Markušić <luka.markusic@microblink.com>2022-07-30 08:10:29 +0200
committerLuka Markušić <luka.markusic@microblink.com>2022-07-30 08:10:29 +0200
commit1f482e585e6eccc4c56d7bbaf34cdaeee62ba8a5 (patch)
tree41ebaf0127badb87f0d34c5928c98cbb35d27015 /pkg/gui/controllers/helpers/upstream_helper.go
parent367b0d331836c90c015bf0c45f88612f3d94d08a (diff)
Fix github linter errors
Diffstat (limited to 'pkg/gui/controllers/helpers/upstream_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/upstream_helper.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/controllers/helpers/upstream_helper.go b/pkg/gui/controllers/helpers/upstream_helper.go
index a3ece704e..a2d8e8ae2 100644
--- a/pkg/gui/controllers/helpers/upstream_helper.go
+++ b/pkg/gui/controllers/helpers/upstream_helper.go
@@ -49,7 +49,7 @@ func (self *UpstreamHelper) ParseUpstream(upstream string) (string, string, erro
return upstreamRemote, upstreamBranch, nil
}
-func (self *UpstreamHelper) promptForUpstream(currentBranch *models.Branch, initialContent string, onConfirm func(string) error) error {
+func (self *UpstreamHelper) promptForUpstream(initialContent string, onConfirm func(string) error) error {
return self.c.Prompt(types.PromptOpts{
Title: self.c.Tr.EnterUpstream,
InitialContent: initialContent,
@@ -62,11 +62,11 @@ func (self *UpstreamHelper) PromptForUpstreamWithInitialContent(currentBranch *m
suggestedRemote := self.GetSuggestedRemote()
initialContent := suggestedRemote + " " + currentBranch.Name
- return self.promptForUpstream(currentBranch, initialContent, onConfirm)
+ return self.promptForUpstream(initialContent, onConfirm)
}
-func (self *UpstreamHelper) PromptForUpstreamWithoutInitialContent(currentBranch *models.Branch, onConfirm func(string) error) error {
- return self.promptForUpstream(currentBranch, "", onConfirm)
+func (self *UpstreamHelper) PromptForUpstreamWithoutInitialContent(_ *models.Branch, onConfirm func(string) error) error {
+ return self.promptForUpstream("", onConfirm)
}
func (self *UpstreamHelper) GetSuggestedRemote() string {