mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-26 15:40:18 +00:00
style: fix rustfmt formatting in thread_ops channel auth check
https://claude.ai/code/session_014Njp7AM1n1P9vanizNhxws
This commit is contained in:
@@ -960,9 +960,10 @@ impl Agent {
|
||||
{
|
||||
let sess = session.lock().await;
|
||||
if let Some(thread) = sess.threads.get(&thread_id) {
|
||||
let authorized = thread.source_channel.as_ref().is_none_or(|src| {
|
||||
src == &message.channel || message.channel == "web"
|
||||
});
|
||||
let authorized = thread
|
||||
.source_channel
|
||||
.as_ref()
|
||||
.is_none_or(|src| src == &message.channel || message.channel == "web");
|
||||
if !authorized {
|
||||
tracing::warn!(
|
||||
%thread_id,
|
||||
|
||||
Reference in New Issue
Block a user