diff --git a/vcsclient/bitbucketserver.go b/vcsclient/bitbucketserver.go index b11bd82..088d6e5 100644 --- a/vcsclient/bitbucketserver.go +++ b/vcsclient/bitbucketserver.go @@ -512,7 +512,7 @@ func (client *BitbucketServerClient) DeletePullRequestComment(ctx context.Contex break } } - if _, err = bitbucketClient.DeleteComment_2(owner, repository, int64(pullRequestID), int64(commentID), map[string]interface{}{"version": int32(commentVersion)}); err != nil && err != io.EOF { // #nosec G105 + if _, err = bitbucketClient.DeleteComment_2(owner, repository, int64(pullRequestID), int64(commentID), map[string]interface{}{"version": int32(commentVersion)}); err != nil && err != io.EOF { // #nosec G115 return fmt.Errorf("an error occurred while deleting pull request comment:\n%s", err.Error()) } return nil