Skip to content

Commit 240e0c4

Browse files
committed
chore: Get rid of lint errors
1 parent 52b3883 commit 240e0c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const fields = {
1111
user_name: true,
1212
user_email: true,
1313
beforePushScript: false
14-
}
14+
};
1515
const cwd = process.cwd();
1616
const config = {};
1717

@@ -22,7 +22,7 @@ for (const [field, isRequired] of Object.entries(fields)) {
2222
throw Error(`deployOnGit requires "${field}" field in package config`);
2323
}
2424

25-
if(configVar) {
25+
if (configVar) {
2626
config[field] = configVar.replace(/\$([a-zA-Z0-9_]+)/g, (match, envVarName) => {
2727
const envVar = process.env[envVarName];
2828

@@ -57,15 +57,15 @@ execSync(`
5757
git commit --allow-empty -m "${config.commit}" 2>&1
5858
`, { cwd });
5959

60-
if(config.beforePushScript) {
60+
if (config.beforePushScript) {
6161
console.log('Running beforePushScript...');
6262

6363
try {
6464
execSync(`
6565
cd ${config.folder} &&
6666
${config.beforePushScript}
6767
`, { cwd });
68-
} catch(e) {
68+
} catch (e) {
6969
throw Error('Failed to run beforePushScript.');
7070
}
7171
}

0 commit comments

Comments
 (0)