Skip to content

Commit ecdcf1b

Browse files
committed
Fix colossal embarrassment.
1 parent 2398472 commit ecdcf1b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/metadata.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,7 @@ impl EncodedMetadata {
129129
}
130130

131131
pub(crate) fn len(&self) -> tsk_size_t {
132-
if self.encoded.is_empty() {
133-
0
134-
} else {
135-
self.encoded.len() as tsk_size_t
136-
}
132+
self.encoded.len() as tsk_size_t
137133
}
138134
}
139135

0 commit comments

Comments
 (0)