diff options
-rw-r--r-- | openpgp/src/parse/partial_body.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/src/parse/partial_body.rs b/openpgp/src/parse/partial_body.rs index 0ae9bad4..fbea5d9b 100644 --- a/openpgp/src/parse/partial_body.rs +++ b/openpgp/src/parse/partial_body.rs @@ -312,9 +312,7 @@ impl<T: BufferedReader<Cookie>> BufferedReaderPartialBodyFilter<T> { if need_fill { t!("Need to refill the buffer."); let result = self.do_fill_buffer(amount); - if let Err(err) = result { - return Err(err); - } + result? } //println!(" Buffer: {:?} (cursor at {})", |