Skip to content

Commit

Permalink
fix create note file path construction
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacro committed May 18, 2024
1 parent c32d6ba commit ab213b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/note/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (c *CreateCommand) Run(ctx *cli.Context) error {
return err
}

filename := filepath.Join(ctx.Config.Notes.Directory, date, ctx.Config.Notes.Extension)
filename := filepath.Join(ctx.Config.Notes.Directory, date+ctx.Config.Notes.Extension)
resolved, err := utils.ResolvePath(filename)
if err != nil {
return err
Expand Down

0 comments on commit ab213b8

Please sign in to comment.