Skip to content

Commit a8da632

Browse files
authored
Merge pull request #1460 from thinkingmachines/fix/create-note
Fix check for creating free url notes
2 parents 4c74979 + 72c9d04 commit a8da632

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)