You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2022/12/29 08:36:56 UTC

[GitHub] [incubator-pekko] He-Pin commented on a diff in pull request #80: =sbt Make use of `File.separatorChar` to avoid exception.

He-Pin commented on code in PR #80:
URL: https://github.com/apache/incubator-pekko/pull/80#discussion_r1058813812


##########
project/ValidatePullRequest.scala:
##########
@@ -46,7 +46,7 @@ object PekkoValidatePullRequest extends AutoPlugin {
 
       loadedBuild.value.allProjectRefs.collect {
         case (_, project) if !ignoredProjects.contains(project.id) =>
-          val directory = project.base.getPath.split("/").last
+          val directory = project.base.getPath.split(java.io.File.separatorChar).last

Review Comment:
   To help who is on Windows



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org