1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

* use tab for indent

This commit is contained in:
shimataro 2019-09-19 06:51:41 +09:00
parent 3f31f3b902
commit 86cd971148
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
2 changed files with 8 additions and 8 deletions

View file

@ -43,14 +43,14 @@ function main(): void
*/
function getHomeDirectory(): string
{
const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME";
const home = process.env[homeEnv];
if(home === undefined)
{
throw new Error(`${homeEnv} is not defined`);
}
const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME";
const home = process.env[homeEnv];
if(home === undefined)
{
throw new Error(`${homeEnv} is not defined`);
}
return home;
return home;
}
main();