summaryrefslogtreecommitdiff
path: root/runtime/ops/http.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/http.rs')
-rw-r--r--runtime/ops/http.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/http.rs b/runtime/ops/http.rs
index 5b156fc11..58783bbbc 100644
--- a/runtime/ops/http.rs
+++ b/runtime/ops/http.rs
@@ -20,7 +20,7 @@ fn op_http_start(
tcp_stream_rid: ResourceId,
_: (),
) -> Result<ResourceId, AnyError> {
- if let Some(resource_rc) = state
+ if let Ok(resource_rc) = state
.resource_table
.take::<TcpStreamResource>(tcp_stream_rid)
{
@@ -32,7 +32,7 @@ fn op_http_start(
return deno_http::start_http(state, tcp_stream, addr, "http");
}
- if let Some(resource_rc) = state
+ if let Ok(resource_rc) = state
.resource_table
.take::<TlsStreamResource>(tcp_stream_rid)
{