mirror of
https://github.com/dnote/dnote
synced 2026-03-16 15:35:52 +01:00
Merge pull request #23 from michielboekhoff/fix-self-import
Fixed self-import.
This commit is contained in:
commit
bd62bb6dca
2 changed files with 2 additions and 4 deletions
|
|
@ -48,7 +48,7 @@ func writeNote(note utils.Note) error {
|
|||
dnote[book] = []utils.Note{note}
|
||||
}
|
||||
|
||||
err := utils.WriteDnote(dnote)
|
||||
err = utils.WriteDnote(dnote)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/dnote-io/cli/utils"
|
||||
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
|
|
@ -176,7 +174,7 @@ func WriteDnote(dnote Dnote) error {
|
|||
return err
|
||||
}
|
||||
|
||||
notePath, err := utils.GetDnotePath()
|
||||
notePath, err := GetDnotePath()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue