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 (#8)

This commit is contained in:
shimataro 2019-09-19 06:55:40 +09:00 committed by GitHub
parent 3f31f3b902
commit 4ea0f24aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();