mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 09:49:05 +00:00
strings.Split produces an empty trailing element when the git diff output ends with \n. The empty element was written into the last file's buffer, and TrimSuffix only removed one \n — leaving the last Diff field with an extra trailing newline that earlier files didn't have. Switch to TrimRight so all Diff values are consistently clean. |
||
|---|---|---|
| .. | ||
| agent | ||
| config | ||
| diff | ||
| gitcmd | ||
| llm | ||
| model | ||
| pathutil | ||
| release | ||
| session | ||
| stdout | ||
| suggestdiff | ||
| telemetry | ||
| tool | ||
| viewer | ||