Skip to content

Commit

Permalink
Remove unused function parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgoetsch committed Mar 20, 2024
1 parent 5813549 commit ae0b1a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/bin/rbw-agent/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ pub async fn lock(
pub async fn check_lock(
sock: &mut crate::sock::Sock,
state: std::sync::Arc<tokio::sync::Mutex<crate::agent::State>>,
_tty: Option<&str>,
) -> anyhow::Result<()> {
if state.lock().await.needs_unlock() {
return Err(anyhow::anyhow!("agent is locked"));
Expand Down
7 changes: 1 addition & 6 deletions src/bin/rbw-agent/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,7 @@ async fn handle_request(
true
}
rbw::protocol::Action::CheckLock => {
crate::actions::check_lock(
sock,
state.clone(),
req.tty.as_deref(),
)
.await?;
crate::actions::check_lock(sock, state.clone()).await?;
false
}
rbw::protocol::Action::Lock => {
Expand Down

0 comments on commit ae0b1a8

Please sign in to comment.