summaryrefslogtreecommitdiff
path: root/ext/fs/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-07 17:37:37 -0400
committerGitHub <noreply@github.com>2023-03-07 22:37:37 +0100
commitb32a6f8ad20e6e4b0cc24b8256c08192b4899844 (patch)
tree76201de6fe376b658b99228c8d2ca1618181ee57 /ext/fs/lib.rs
parent0e3affcd5b932e1b1ecc37934a0625a0d4d0d62c (diff)
refactor(core): don't use Result in ExtensionBuilder::state (#18066)
There's no point for this API to expect result. If something fails it should result in a panic during build time to signal to embedder that setup is wrong.
Diffstat (limited to 'ext/fs/lib.rs')
-rw-r--r--ext/fs/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs
index 7551408a9..4b177a2bf 100644
--- a/ext/fs/lib.rs
+++ b/ext/fs/lib.rs
@@ -122,7 +122,6 @@ pub fn init<P: FsPermissions + 'static>(unstable: bool) -> Extension {
.esm(include_js_files!("30_fs.js",))
.state(move |state| {
state.put(UnstableChecker { unstable });
- Ok(())
})
.ops(vec![
op_open_sync::decl::<P>(),