jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 612 forks source link

Fix null check condition in PipelineHookTriggerHandlerImpl.java #1612

Closed shivajee98 closed 7 months ago

shivajee98 commented 7 months ago

Fix null check condition in PipelineHookTriggerHandlerImpl.java

The condition hook.getRepository() == null || hook.getRepository() == null is redundant. This commit removes the duplicate check, leaving only hook.getRepository() == null. This fix ensures correct null checking for the getRepository() method in PipelineHookTriggerHandlerImpl.java.