refactor: improve code readability and consistency across multiple files

This commit is contained in:
asepharyana
2026-07-20 12:02:50 +07:00
parent 4ced6681c2
commit 1ec2aa136a
17 changed files with 117 additions and 41 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ impl LlmClient {
loop {
attempt += 1;
if let Some(ref flag) = abort_flag {
if let Some(flag) = abort_flag {
if flag.load(std::sync::atomic::Ordering::Relaxed) {
anyhow::bail!("aborted");
}
@@ -267,7 +267,7 @@ impl LlmClient {
}
if meaningful_content {
if let Some(ref flag) = abort_flag {
if let Some(flag) = abort_flag {
if flag.load(std::sync::atomic::Ordering::Relaxed) {
return Err(anyhow::anyhow!("aborted"));
}