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

* use camelCase for variable

This commit is contained in:
shimataro 2019-09-18 22:26:41 +09:00
parent e9c10d6221
commit 03c10e4088
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 7 additions and 7 deletions

View file

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