Skip to content

Commit

Permalink
Make os.home a lazy val
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejG604 committed Nov 21, 2023
1 parent 3d472c0 commit 7d336ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion os/src-jvm/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package object os {
/**
* The user's home directory
*/
val home: Path = Path(System.getProperty("user.home"))
lazy val home: Path = Path(System.getProperty("user.home"))

/**
* The current working directory for this process.
Expand Down
2 changes: 1 addition & 1 deletion os/src-native/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package object os {
/**
* The user's home directory
*/
val home: Path = Path(System.getProperty("user.home"))
lazy val home: Path = Path(System.getProperty("user.home"))

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

0 comments on commit 7d336ec

Please sign in to comment.