Removing unnecessary check if Pull Request was opened
@@ -295,7 +295,6 @@ public class UpgradeDependencyPlugin implements Plugin<Project> {
}
});
- task.onlyIf(isPullRequestOpen(task));
task.onlyIf(wasOpenPullRequestNotFound(findOpenPullRequestTask));
task.onlyIf(wasBuildFileUpdatedSpec(replaceVersionTask));
}
@@ -353,15 +352,6 @@ public class UpgradeDependencyPlugin implements Plugin<Project> {
};
}
- private Spec<Task> isPullRequestOpen(final MergePullRequestTask mergePullRequestTask) {
- return new Spec<Task>() {
- @Override
- public boolean isSatisfiedBy(Task element) {
- return mergePullRequestTask.getPullRequestSha() != null && mergePullRequestTask.getPullRequestUrl() != null;
- }
- };
- }
-
private Spec<Task> wasOpenPullRequestNotFound(final FindOpenPullRequestTask findOpenPullRequestTask) {
return new Spec<Task>() {
@Override
