diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-08-24 17:21:58 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-08-24 17:21:58 -0400 |
commit | 2441d5959010a565f0b8a959b4474715b384e693 (patch) | |
tree | e7fed1197d6aa15caac8293e445600bc6a91fd7a | |
parent | 2cd04f693fca03ab6c4a4692aa787338dc583777 (diff) |
fix not compiling
-rw-r--r-- | src/commands/quit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/quit.rs b/src/commands/quit.rs index 3b15b3c..214a2bd 100644 --- a/src/commands/quit.rs +++ b/src/commands/quit.rs @@ -17,6 +17,7 @@ pub fn quit(context: &mut AppContext) -> JoshutoResult<()> { } pub fn quit_to_current_directory(context: &mut AppContext) -> JoshutoResult<()> { + let worker_context = context.worker_context_ref(); if worker_context.is_busy() || !worker_context.is_empty() { Err(JoshutoError::new( JoshutoErrorKind::Io(io::ErrorKind::Other), @@ -26,7 +27,6 @@ pub fn quit_to_current_directory(context: &mut AppContext) -> JoshutoResult<()> context.quit = QuitType::ToCurrentDirectory; Ok(()) } - Ok(()) } pub fn force_quit(context: &mut AppContext) -> JoshutoResult<()> { |