Skip to content

Commit 6426b4a

Browse files
f unnecessary check
1 parent e34a6d8 commit 6426b4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lightning/src/onion_message/packet.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,6 @@ impl ReadableArgs<SharedSecret> for Payload {
171171
Error::Io(ioe) => DecodeError::from(ioe),
172172
_ => DecodeError::InvalidValue
173173
})?;
174-
if v.0 == 0 { // 0-length payload
175-
return Err(DecodeError::InvalidValue)
176-
}
177174

178175
let mut rd = FixedLengthReader::new(r, v.0);
179176
// TODO: support reply paths

0 commit comments

Comments
 (0)