aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/config.go
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-06-05 00:45:34 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-05 01:40:37 +0200
commitc52a467302608012c4fd7d496a7cd60ad153b5cd (patch)
treebc407b9a1eeedbb6a1dcbce6b39406c7b2420865 /bridge/github/config.go
parent7923d6c942114b710089c2b2e7f49bc7ac374b44 (diff)
downloadgit-bug-c52a467302608012c4fd7d496a7cd60ad153b5cd.tar.gz
Allow cancelling configuration
correct error message Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge/github/config.go')
-rw-r--r--bridge/github/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go
index 4a3bddfb..b5468846 100644
--- a/bridge/github/config.go
+++ b/bridge/github/config.go
@@ -98,7 +98,7 @@ func (*Github) Configure(repo repository.RepoCommon, params core.BridgeParams) (
return nil, err
}
if !ok {
- return nil, fmt.Errorf("project doesn't exist or authentication token has a wrong scope")
+ return nil, fmt.Errorf("project doesn't exist or authentication token has an incorrect scope")
}
conf[keyToken] = token
@@ -428,7 +428,7 @@ func splitURL(url string) (owner string, project string, err error) {
owner = res[1]
project = res[2]
- return owner, project, nil
+ return
}
func getValidGithubRemoteURLs(remotes map[string]string) []string {