Skip to content

Commit

Permalink
changed var to let and const keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
frappelatte28 committed Jan 8, 2021
1 parent a6573c5 commit 4f85d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/pre-commit-hook.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// hooks/pre-commit.js

var exec = require('child_process').exec;
const exec = require('child_process').exec;
// Executes shell commands synchronously
var sh = require('child_process').execSync;
const sh = require('child_process').execSync;

exec('git diff --cached --quiet', function (err, stdout, stderr) {

Expand All @@ -20,7 +20,7 @@
// restore stashed changes
sh('git stash pop --quiet');

var exitCode = 0;
let exitCode = 0;
if (err) {
console.log(stderr);
exitCode = -1;
Expand Down

0 comments on commit 4f85d83

Please sign in to comment.