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:
parent
e9c10d6221
commit
03c10e4088
3 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue