diff --git a/bin/ungit b/bin/ungit index bf67a6c1e..4a138634c 100755 --- a/bin/ungit +++ b/bin/ungit @@ -91,7 +91,7 @@ server.on('error', (e) => { console.log('Ungit server already running'); navigate(); } else { - console.error('Failed to run server: ', e) - process.exit(1) + console.error('Failed to run server: ', e); + process.exit(1); } }); diff --git a/source/git-api.js b/source/git-api.js index 7cb3bf60a..34ed5aaba 100644 --- a/source/git-api.js +++ b/source/git-api.js @@ -10,7 +10,6 @@ const gitPromise = require('./git-promise'); const fs = require('fs').promises; const watch = require('fs').watch; const ignore = require('ignore'); -const crypto = require('crypto'); const nodegit = require('nodegit'); const isMac = /^darwin/.test(process.platform); @@ -756,8 +755,8 @@ exports.registerApi = (env) => { ensureAuthenticated, ensurePathExists, jw(async (req) => { - let repoPath = req.query.path; - let tagName = req.query.name.trim(); + const repoPath = req.query.path; + const tagName = req.query.name.trim(); const repo = await getRepo(repoPath); return nodegit.Tag.delete(repo, tagName) .catch(normalizeError)