aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/token.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-24 14:39:02 +0100
committeramine <hilalyamine@gmail.com>2019-11-24 18:04:48 +0100
commit06abb5a5312dfaa1edac58cced94691e477c2ed7 (patch)
tree356bbe10b81a1ed06ded54a5570027fda51fead6 /bridge/core/token.go
parentda2d7970cd46c52bb8630c5540ea013bd3b9e81a (diff)
downloadgit-bug-06abb5a5312dfaa1edac58cced94691e477c2ed7.tar.gz
bridge/gitlab: add gitlab bridge configuration
Diffstat (limited to 'bridge/core/token.go')
-rw-r--r--bridge/core/token.go4
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
}
}