Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Nov 30, 2023
1 parent 31a96e5 commit 35a110f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/scala/io/appthreat/atom/Atom.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ object Atom:

private val COMMON_IGNORE_REGEX = ".*(test|docs|example|samples|mocks|Documentation|demos).*"

private val CHEN_INCLUDE_PATH = sys.env.getOrElse("CHEN_INCLUDE_PATH", "")
// Custom include paths for c/c++
private val C2ATOM_INCLUDE_PATH =
if System.getenv("CHEN_INCLUDE_PATH").nonEmpty && File(
System.getenv("CHEN_INCLUDE_PATH")
if CHEN_INCLUDE_PATH.nonEmpty && File(
CHEN_INCLUDE_PATH
).isDirectory
then System.getenv("CHEN_INCLUDE_PATH").split(java.io.File.pathSeparator).toSet
then CHEN_INCLUDE_PATH.split(java.io.File.pathSeparator).toSet
else
Set.empty

Expand Down

0 comments on commit 35a110f

Please sign in to comment.