From 878ee613e0d40068801e17418d42c032b5a60d4e Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Thu, 4 May 2023 10:28:17 +0200 Subject: [PATCH] Use FileFilter.nothing from newest sbt --- project/ValidatePullRequest.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/project/ValidatePullRequest.scala b/project/ValidatePullRequest.scala index 0062062ef3..dcbc34293a 100644 --- a/project/ValidatePullRequest.scala +++ b/project/ValidatePullRequest.scala @@ -57,9 +57,7 @@ object PekkoValidatePullRequest extends AutoPlugin { case (_, project) if !ignoredProjects.contains(project.id) => val directory = project.base.getPath.split(java.io.File.separatorChar).last PathGlobFilter(s"$directory/**") - }.fold(new FileFilter { // TODO: Replace with FileFilter.nothing when https://github.com/sbt/io/pull/340 gets released - override def accept(pathname: File): Boolean = false - })(_ || _) + }.fold(FileFilter.nothing)(_ || _) }, validatePullRequestBuildAll / excludeFilter := PathGlobFilter("project/MiMa.scala"), prValidatorGithubRepository := Some("apache/incubator-pekko"),