Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
[Core] (Improvement) Add return message for rm command when deletin…
Browse files Browse the repository at this point in the history
…g note items
  • Loading branch information
chaojian-zhang committed Sep 1, 2019
1 parent cfcb3fa commit cea08ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SomewhereStandard/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,8 @@ public IEnumerable<string> RM(params string[] args)
}
}
}
else
result = new string[] { $"Note `{itemname}` has been deleted." };
// Delete from DB
RemoveFile(itemname);
TryRecordCommit(JournalEvent.CommitOperation.DeleteFile, itemname, null);
Expand Down

0 comments on commit cea08ca

Please sign in to comment.