Fix broken return on cmd_new

pull/284/head
Patrick Anker 1 year ago
parent 0871a4768b
commit 5ae939fb6a
No known key found for this signature in database
GPG Key ID: 66338E6C32588ED1

@ -90,9 +90,9 @@ func executeCommandNew(notebook *core.Notebook, documents *documentStore, contex
location: opts.InsertLinkAtLocation,
title: &opts.Title,
}
ok, err := linkNote(notebook, documents, context, info)
err := linkNote(notebook, documents, context, info)
if !ok {
if err != nil {
return nil, err
}
}

Loading…
Cancel
Save