History

remove debug-assert which doesn't hold - it's OK to have empty commit messages

Sebastian Thiel committed 5 years ago

Commit 13abc2d1 parent 6ecb0031 file · +0 −1Browse files

Showing the changes to git-object/src/immutable/commit.rs (1 of 1 file). Show all

Unified · Split

git-object/src/immutable/commit.rs+0−1
@@ -75,7 +75,6 @@ fn parse_message(i: &[u8]) -> IResult<&[u8], &BStr, decode::Error> { · 74 unmodified lines
75 )));75 )));
76 }76 }
77 let (i, _) = tag(NL)(i).map_err(decode::Error::context("a newline separates headers from the message"))?;77 let (i, _) = tag(NL)(i).map_err(decode::Error::context("a newline separates headers from the message"))?;
78 debug_assert!(!i.is_empty());
79 Ok((&[], &i.as_bstr()))78 Ok((&[], &i.as_bstr()))
80}79}
81 80

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t