We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c74979 + 72c9d04 commit a8da632Copy full SHA for a8da632
lib/note/index.js
@@ -34,7 +34,7 @@ async function getNoteById (noteId, { includeUser } = { includeUser: false }) {
34
}
35
36
async function createNote (userId, noteAlias) {
37
- if (!config.allowAnonymous && !!userId) {
+ if (!config.allowAnonymous && !userId) {
38
throw new Error('can not create note')
39
40
0 commit comments