Skip to content

Commit 6b66feb

Browse files
committed
Address review nit
1 parent e05f58e commit 6b66feb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/core/src/db/messages/commit.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ impl Commit {
111111
}
112112

113113
pub fn encoded_len(&self) -> usize {
114-
let mut count = 0;
115-
116-
count += 1; // tag for option
114+
let mut count = 1; // tag for option
117115
if let Some(hash) = self.parent_commit_hash {
118116
count += hash.data.len();
119117
}

0 commit comments

Comments
 (0)