diff options
author | pikomonde <32364823+pikomonde@users.noreply.github.com> | 2024-03-20 03:15:20 +0700 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-12 08:33:47 +0200 |
commit | 84333eebc3be466b23627f6709ad6b000ddd21f1 (patch) | |
tree | 0dc30763a0afb5abeabbe051e0c17771f4670b67 /pkg/gui/controllers/helpers/host_helper.go | |
parent | 7f6eea2a55ee6e17660c893a9322d743c5016caf (diff) |
renaming variable to CommitHash
Diffstat (limited to 'pkg/gui/controllers/helpers/host_helper.go')
-rw-r--r-- | pkg/gui/controllers/helpers/host_helper.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/controllers/helpers/host_helper.go b/pkg/gui/controllers/helpers/host_helper.go index 77fdd530e..bbd464ba8 100644 --- a/pkg/gui/controllers/helpers/host_helper.go +++ b/pkg/gui/controllers/helpers/host_helper.go @@ -8,7 +8,7 @@ import ( type IHostHelper interface { GetPullRequestURL(from string, to string) (string, error) - GetCommitURL(commitSha string) (string, error) + GetCommitURL(commitHash string) (string, error) } type HostHelper struct { @@ -31,12 +31,12 @@ func (self *HostHelper) GetPullRequestURL(from string, to string) (string, error return mgr.GetPullRequestURL(from, to) } -func (self *HostHelper) GetCommitURL(commitSha string) (string, error) { +func (self *HostHelper) GetCommitURL(commitHash string) (string, error) { mgr, err := self.getHostingServiceMgr() if err != nil { return "", err } - return mgr.GetCommitURL(commitSha) + return mgr.GetCommitURL(commitHash) } // getting this on every request rather than storing it in state in case our remoteURL changes |