Skip to content

Commit

Permalink
default value
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Feb 6, 2025
1 parent c144718 commit 8e01c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,9 @@ public function whoami():string {
/**
* Get the home directory. If it's not set, use the workspace default folder.
*/
#[Pure]
public function getHomeDir():string {
return getenv('HOME') || getenv('WORKSPACE');
return getenv('HOME') ?? getenv('WORKSPACE');
}

}

0 comments on commit 8e01c03

Please sign in to comment.