Skip to content

Commit f023149

Browse files
committed
lint
1 parent 6ffe0b4 commit f023149

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

source/server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ if (config.allowedIPs) {
100100
res
101101
.status(403)
102102
.send(
103-
403,
104103
'<h3>This host is not authorized to connect</h3>' +
105104
'<p>You are trying to connect to an Ungit instance from an unathorized host.</p>'
106105
);
@@ -386,7 +385,7 @@ app.post('/api/userconfig', ensureAuthenticated, (req, res) => {
386385
});
387386

388387
app.get('/api/fs/exists', ensureAuthenticated, (req, res) => {
389-
res.json(fs.existsSync(req.query['path']));
388+
res.json(fs.existsSync(req.query.path));
390389
});
391390

392391
app.get('/api/fs/listDirectories', ensureAuthenticated, (req, res) => {

test/spec.git-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('git-api', () => {
209209
return common.post(req, '/discardchanges', { path: testDir, file: testFile });
210210
});
211211

212-
it('modifying a test file should work', () => {
212+
it('modifying a test file should work part deux', () => {
213213
return common.post(req, '/testing/changefile', { file: path.join(testDir, testFile) });
214214
});
215215

@@ -281,7 +281,7 @@ describe('git-api', () => {
281281
return common.post(req, '/testing/createfile', { file: path.join(testDir, testFile3) });
282282
});
283283

284-
it('status should list the new file', () => {
284+
it('status should list the new file once again', () => {
285285
return common.get(req, '/status', { path: testDir }).then((res) => {
286286
expect(Object.keys(res.files).length).to.be(1);
287287
expect(res.files[testFile3]).to.eql({

0 commit comments

Comments
 (0)