summaryrefslogtreecommitdiff
path: root/cli/tools/repl
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/repl')
-rw-r--r--cli/tools/repl/mod.rs2
-rw-r--r--cli/tools/repl/session.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/repl/mod.rs b/cli/tools/repl/mod.rs
index f0964ec4d..7ca229ab3 100644
--- a/cli/tools/repl/mod.rs
+++ b/cli/tools/repl/mod.rs
@@ -133,7 +133,7 @@ pub async fn run(
// We check for close and break here instead of making it a loop condition to get
// consistent behavior in when the user evaluates a call to close().
- if repl_session.is_closing().await? {
+ if repl_session.closing().await? {
break;
}
diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs
index d72fc9499..c256172e4 100644
--- a/cli/tools/repl/session.rs
+++ b/cli/tools/repl/session.rs
@@ -116,7 +116,7 @@ impl ReplSession {
Ok(repl_session)
}
- pub async fn is_closing(&mut self) -> Result<bool, AnyError> {
+ pub async fn closing(&mut self) -> Result<bool, AnyError> {
let closed = self
.evaluate_expression("(this.closed)")
.await?