We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
napi::Result
1 parent 4fd24ee commit d773936Copy full SHA for d773936
bindings/matrix-sdk-crypto-nodejs/src/attachment.rs
@@ -100,7 +100,7 @@ impl EncryptedAttachment {
100
/// current available Node.js API does seem be limited in that
101
/// regard.
102
#[napi(getter)]
103
- pub fn encrypted_data(&self) -> napi::Result<Uint8Array> {
104
- Ok(Uint8Array::new(self.encrypted_data.deref().to_owned()))
+ pub fn encrypted_data(&self) -> Uint8Array {
+ Uint8Array::new(self.encrypted_data.deref().to_owned())
105
}
106
0 commit comments