Skip to content

Commit

Permalink
remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Aug 20, 2019
1 parent 29afa00 commit 88e6e65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/isolate.rs
Expand Up @@ -389,9 +389,8 @@ impl Isolate {
self.check_last_exception()
}

fn run_microtasks(&self) -> Result<(), ErrBox> {
fn run_microtasks(&self) {
unsafe { libdeno::deno_run_microtasks(self.libdeno_isolate, self.as_raw_ptr()) };
self.check_last_exception()
}

fn check_last_exception(&self) -> Result<(), ErrBox> {
Expand Down Expand Up @@ -695,7 +694,7 @@ impl Future for Isolate {
drop(locker);
}

self.run_microtasks()?;
self.run_microtasks();
self.check_promise_errors();
self.check_last_exception()?;

Expand Down

0 comments on commit 88e6e65

Please sign in to comment.