Skip to content

Commit b3cf98b

Browse files
committed
Fix linter
Signed-off-by: James Tsai <jamesscamel@gmail.com>
1 parent b597dc9 commit b3cf98b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/note/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function listMyNotes (req, res) {
233233
}
234234

235235
const deleteNote = async (req, res) => {
236-
if(req.isAuthenticated()) {
236+
if (req.isAuthenticated()) {
237237
const noteId = await Note.parseNoteIdAsync(req.params.noteId)
238238
try {
239239
const destroyed = await Note.destroy({
@@ -260,21 +260,21 @@ const deleteNote = async (req, res) => {
260260
}
261261

262262
const updateNote = async (req, res) => {
263-
if(req.isAuthenticated()) {
263+
if (req.isAuthenticated()) {
264264
const noteId = await Note.parseNoteIdAsync(req.params.noteId)
265265
try {
266266
const note = await Note.findOne({
267267
where: {
268-
id: noteId,
268+
id: noteId
269269
}
270270
})
271271
if (!note) {
272272
logger.error('Update note failed: Can\'t find the note.')
273273
return errorNotFound(req, res)
274274
}
275-
275+
276276
const updated = await note.update({
277-
content: req.body.content,
277+
content: req.body.content
278278
})
279279
if (!updated) {
280280
logger.error('Update note failed: Write data error.')

public/js/extra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ export function finishView (view) {
516516
$value.unwrap()
517517
try {
518518
const data = transform(content)
519-
$elem.html(`<div class="markmap-container"><svg></svg></div>`)
519+
$elem.html('<div class="markmap-container"><svg></svg></div>')
520520
markmap($elem.find('svg')[0], data, {
521521
duration: 0
522522
})

0 commit comments

Comments
 (0)