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

* update error instance (#46)

This commit is contained in:
shimataro 2019-12-22 23:21:17 +09:00 committed by GitHub
parent c4ec6ddf76
commit 3e015c8816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

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