mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 05:19:58 -04:00
Do not re-upload entries when adding a blank note
This commit is contained in:
1 parent
4556e38e32
commit
d323f2f75a
1 file changed
+2
-2
+2
-2
@@ -119,8 +119,8 @@ func editNote(baseNote []string) ([]string, bool) {
|
||||
// clamp trailing whitespace in each note line
|
||||
core.ClampTrailingWhitespace(note)
|
||||
|
||||
// return the edited note if it is different from baseNote
|
||||
if !reflect.DeepEqual(note, baseNote) {
|
||||
// return the edited note if it is different from baseNote and is not empty
|
||||
if !reflect.DeepEqual(note, baseNote) && len(note) > 0 {
|
||||
return note, true
|
||||
} else {
|
||||
return nil, false
|
||||
|
||||
Reference in new issue
Block a user