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:
parent
3f31f3b902
commit
86cd971148
2 changed files with 8 additions and 8 deletions
14
src/main.ts
14
src/main.ts
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue