Skip to content

Commit

Permalink
fmt fix and removing unneccesary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vivasvan1 committed Apr 24, 2024
1 parent 7a6d2cc commit 40d0dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ inThisBuild(
pgpSecretRing := file("/tmp/secret.asc"),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-cli/"), "scm:git:git@github.com:zio/zio-cli.git")
),
dependencyOverrides += "org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0"
)
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object ConfigFileArgsPlatformSpecific extends ConfigFilePlatformSpecific {

// Use ZIO to filter the paths
for {
doPathExist <- ZIO.foreach(pathsToCheck)(path => ZIO.succeed(Files.exists(Path.of(path, filename))))
doPathExist <- ZIO.foreach(pathsToCheck)(path => ZIO.succeed(Files.exists(Path.of(path, filename))))
existingPaths = doPathExist.zip(pathsToCheck).collect { case (exists, path) if exists => path }
} yield existingPaths.distinct // Use distinct to remove duplicates at the end
}
Expand Down

0 comments on commit 40d0dcf

Please sign in to comment.