Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Feb 1, 2021
1 parent 3c2af75 commit cdecf4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/ungit
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
5 changes: 2 additions & 3 deletions source/git-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cdecf4e

Please sign in to comment.