diff options
author | amine <hilalyamine@gmail.com> | 2019-11-24 14:39:02 +0100 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-11-24 18:04:48 +0100 |
commit | 06abb5a5312dfaa1edac58cced94691e477c2ed7 (patch) | |
tree | 356bbe10b81a1ed06ded54a5570027fda51fead6 /bridge/core/token.go | |
parent | da2d7970cd46c52bb8630c5540ea013bd3b9e81a (diff) | |
download | git-bug-06abb5a5312dfaa1edac58cced94691e477c2ed7.tar.gz |
bridge/gitlab: add gitlab bridge configuration
Diffstat (limited to 'bridge/core/token.go')
-rw-r--r-- | bridge/core/token.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go index 186b9ff4..28c64f5c 100644 --- a/bridge/core/token.go +++ b/bridge/core/token.go @@ -237,12 +237,12 @@ func TokenExist(repo repository.RepoCommon, value string) bool { // TokenExistWithTarget same as TokenExist but restrict search for a given target func TokenExistWithTarget(repo repository.RepoCommon, value string, target string) bool { - tokens, err := LoadTokens(repo) + tokens, err := LoadTokensWithTarget(repo, target) if err != nil { return false } for _, token := range tokens { - if token.Value == value && token.Target == target { + if token.Value == value { return true } } |