Skip to content

Commit 8c26107

Browse files
committed
fix: lint
Signed-off-by: BoHong Li <a60814billy@gmail.com>
1 parent 43c0bff commit 8c26107

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/response.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function responseCodiMD (res, note) {
110110
function updateHistory (userId, note, document, time) {
111111
var noteId = note.alias ? note.alias : models.Note.encodeNoteId(note.id)
112112
history.updateHistory(userId, noteId, document, time)
113-
logger.info("history updated")
113+
logger.info('history updated')
114114
}
115115

116116
function newNote (req, res, next) {
@@ -132,9 +132,8 @@ function newNote (req, res, next) {
132132
alias: req.alias ? req.alias : null,
133133
content: body
134134
}).then(function (note) {
135-
136135
if (req.isAuthenticated()) {
137-
updateHistory(owner, note, body);
136+
updateHistory(owner, note, body)
138137
}
139138

140139
return res.redirect(config.serverURL + '/' + models.Note.encodeNoteId(note.id))

lib/web/auth/mattermost/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22
require('babel-polyfill')
3-
require('isomorphic-fetch');
3+
require('isomorphic-fetch')
44
const Router = require('express').Router
55
const passport = require('passport')
66
const MattermostClient = require('mattermost-redux/client/client4').default

0 commit comments

Comments
 (0)