Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancurrah committed Jun 26, 2024
1 parent ccb7c1b commit 665ae50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/apis/eventsource/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,7 @@ func (b BitbucketServerEventSource) ShouldCreateWebhooks() bool {
return b.AccessToken != nil &&
b.Webhook != nil &&
b.Webhook.URL != "" &&
b.GetBitbucketServerRepositories() != nil &&
len(b.Projects) > 0
((len(b.GetBitbucketServerRepositories()) > 0 && b.GetBitbucketServerRepositories() != nil) || len(b.Projects) > 0)
}

func (b BitbucketServerEventSource) GetBitbucketServerRepositories() []BitbucketServerRepository {
Expand Down

0 comments on commit 665ae50

Please sign in to comment.