diff --git a/cmd/new/new.go b/cmd/new/new.go index 8c104085..33b0f82d 100644 --- a/cmd/new/new.go +++ b/cmd/new/new.go @@ -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 } diff --git a/utils/utils.go b/utils/utils.go index a312dfea..7ca2871e 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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 }