summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-12-08 20:11:10 +0800
committer魏曹先生 <1992414357@qq.com>2025-12-08 20:11:10 +0800
commitf87dc291140ccb63919ab20f56c4f86f6df38dde (patch)
treef4107c1e89f659e8cadfa8cb3bb19044bf9e67eb /src/bin
parent0d43ea9ad1c5d490a5e1db3ce19d67a7e5193d35 (diff)
Skip empty descriptions in update editor
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jv.rs5
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));
+ }
}
}
}