Skip to content

Commit 72c9d04

Browse files
author
Mark Steve Samson
committed
Fix check for creating free url notes
Signed-off-by: Mark Steve Samson <marksteve@thinkingmachin.es>
1 parent 4c74979 commit 72c9d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/note/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function getNoteById (noteId, { includeUser } = { includeUser: false }) {
3434
}
3535

3636
async function createNote (userId, noteAlias) {
37-
if (!config.allowAnonymous && !!userId) {
37+
if (!config.allowAnonymous && !userId) {
3838
throw new Error('can not create note')
3939
}
4040

0 commit comments

Comments
 (0)