Skip to content

Commit

Permalink
Add an intermediate lazy val _home
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 committed Nov 22, 2023
1 parent caf7756 commit f7a89bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion os/src-native/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ package object os {
path
}

private lazy val _home = Path(System.getProperty("user.home"))

/**
* The user's home directory
*/
def home: Path = Path(System.getProperty("user.home"))
def home: Path = _home

/**
* The current working directory for this process.
Expand Down

0 comments on commit f7a89bf

Please sign in to comment.