Skip to content

Commit cdecf4e

Browse files
committed
format
1 parent 3c2af75 commit cdecf4e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bin/ungit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ server.on('error', (e) => {
9191
console.log('Ungit server already running');
9292
navigate();
9393
} else {
94-
console.error('Failed to run server: ', e)
95-
process.exit(1)
94+
console.error('Failed to run server: ', e);
95+
process.exit(1);
9696
}
9797
});

source/git-api.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const gitPromise = require('./git-promise');
1010
const fs = require('fs').promises;
1111
const watch = require('fs').watch;
1212
const ignore = require('ignore');
13-
const crypto = require('crypto');
1413
const nodegit = require('nodegit');
1514

1615
const isMac = /^darwin/.test(process.platform);
@@ -756,8 +755,8 @@ exports.registerApi = (env) => {
756755
ensureAuthenticated,
757756
ensurePathExists,
758757
jw(async (req) => {
759-
let repoPath = req.query.path;
760-
let tagName = req.query.name.trim();
758+
const repoPath = req.query.path;
759+
const tagName = req.query.name.trim();
761760
const repo = await getRepo(repoPath);
762761
return nodegit.Tag.delete(repo, tagName)
763762
.catch(normalizeError)

0 commit comments

Comments
 (0)