aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/core')
-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
}
}