summaryrefslogtreecommitdiff
path: root/cli/ops/resources.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-25 09:14:27 -0500
committerGitHub <noreply@github.com>2020-02-25 09:14:27 -0500
commit91b606aaae23bcb790b55adc5fe70a182a37d564 (patch)
tree16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/ops/resources.rs
parent805992b14a65a6dbfb857dea6d9b657477de043d (diff)
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/ops/resources.rs')
-rw-r--r--cli/ops/resources.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/ops/resources.rs b/cli/ops/resources.rs
index 787894c2c..3031725e2 100644
--- a/cli/ops/resources.rs
+++ b/cli/ops/resources.rs
@@ -1,12 +1,11 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use super::dispatch_json::{JsonOp, Value};
use crate::op_error::OpError;
-use crate::ops::json_op;
use crate::state::State;
use deno_core::*;
pub fn init(i: &mut Isolate, s: &State) {
- i.register_op("resources", s.core_op(json_op(s.stateful_op(op_resources))));
+ i.register_op("op_resources", s.stateful_json_op(op_resources));
}
fn op_resources(