Skip to content

Only try to delete note if note exits.#8

Open
chrisbeardy wants to merge 1 commit into
mgarrido:masterfrom
chrisbeardy:patch-2
Open

Only try to delete note if note exits.#8
chrisbeardy wants to merge 1 commit into
mgarrido:masterfrom
chrisbeardy:patch-2

Conversation

@chrisbeardy

Copy link
Copy Markdown

Currently when using del or rm if there is no note attached to the task you get an error as it tries to remove the notes directory.
rm: cannot remove '/home/todo/notes/': Is a directory.

This patch just checks if a note is attached before attempting to delete.

Currently when using `del` or `rm` if there is no note attached to the task you get an error as it tries to remove the notes directory.
`rm: cannot remove '/home/todo/notes/': Is a directory`.

This patch just checks if a note is attached before attempting to delete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant