diff --git a/lib/note/index.js b/lib/note/index.js index 33993ab1..be18bc4f 100644 --- a/lib/note/index.js +++ b/lib/note/index.js @@ -34,7 +34,7 @@ async function getNoteById (noteId, { includeUser } = { includeUser: false }) { } async function createNote (userId, noteAlias) { - if (!config.allowAnonymous && !!userId) { + if (!config.allowAnonymous && !userId) { throw new Error('can not create note') }