Skip to content

Commit 965cca9

Browse files
committed
fix: lint
Signed-off-by: Raccoon <[email protected]>
1 parent 20b10b7 commit 965cca9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/models/note.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,17 @@ module.exports = function (sequelize, DataTypes) {
9292
return new Promise(function (resolve, reject) {
9393
// if no content specified then use default note
9494
if (!note.content) {
95-
var body = null
9695
let filePath = config.defaultNotePath
9796

9897
if (note.alias) {
99-
const notePathInDocPath = path.join(config.docsPath, path.basename(node.alias) + '.md')
98+
const notePathInDocPath = path.join(config.docsPath, path.basename(note.alias) + '.md')
10099
if (Note.checkFileExist(notePathInDocPath)) {
101100
filePath = notePathInDocPath
102101
}
103102
}
104103

105104
if (Note.checkFileExist(filePath)) {
106-
let noteInFS = readFileSystemNote(filePath)
105+
const noteInFS = readFileSystemNote(filePath)
107106
note.title = noteInFS.title
108107
note.content = noteInFS.content
109108
if (filePath !== config.defaultNotePath) {

0 commit comments

Comments
 (0)