Skip to content

Commit d773936

Browse files
committed
chore(bindings/crypto-nodejs): Remove useless napi::Result.
1 parent 4fd24ee commit d773936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/matrix-sdk-crypto-nodejs/src/attachment.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl EncryptedAttachment {
100100
/// current available Node.js API does seem be limited in that
101101
/// regard.
102102
#[napi(getter)]
103-
pub fn encrypted_data(&self) -> napi::Result<Uint8Array> {
104-
Ok(Uint8Array::new(self.encrypted_data.deref().to_owned()))
103+
pub fn encrypted_data(&self) -> Uint8Array {
104+
Uint8Array::new(self.encrypted_data.deref().to_owned())
105105
}
106106
}

0 commit comments

Comments
 (0)