diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-08 20:11:10 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-08 20:11:10 +0800 |
| commit | f87dc291140ccb63919ab20f56c4f86f6df38dde (patch) | |
| tree | f4107c1e89f659e8cadfa8cb3bb19044bf9e67eb | |
| parent | 0d43ea9ad1c5d490a5e1db3ce19d67a7e5193d35 (diff) | |
Skip empty descriptions in update editor
| -rw-r--r-- | src/bin/jv.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs index de92a69..2aa7b92 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -2670,7 +2670,10 @@ async fn start_update_editor( // Get description (all content after the separator) let description = lines[sep_idx + 1..].join("\n").trim().to_string(); - update_info.insert(path, (new_version.to_string(), description)); + // Only add to update_info if description is not empty after trimming + if !description.is_empty() { + update_info.insert(path, (new_version.to_string(), description)); + } } } } |
