Skip to content

Commit

Permalink
Use java8 compatible methods
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 6, 2022
1 parent 5b406b2 commit 671643d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/thp/cortex/services/JobRunnerSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class JobRunnerSrv @Inject() (
.deepMerge(worker.config)
.deepMerge(proxy_http)
.deepMerge(proxy_https)
(worker.config \ "cacerts").asOpt[String].filterNot(_.isBlank).foreach { cacerts =>
(worker.config \ "cacerts").asOpt[String].filterNot(_.trim.isEmpty).foreach { cacerts =>
val cacertsFile = jobFolder.resolve("input").resolve("cacerts")
Files.write(cacertsFile, cacerts.getBytes)
}
Expand Down

0 comments on commit 671643d

Please sign in to comment.