mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
refactor(native): cache & job runtime (#15139)
This commit is contained in:
@@ -26,11 +26,8 @@ fn try_remove_label(s: &str, i: usize) -> Option<usize> {
|
||||
return None;
|
||||
}
|
||||
|
||||
if let Some(ch) = s[next_idx..].chars().next() {
|
||||
if !ch.is_whitespace() {
|
||||
return None;
|
||||
}
|
||||
} else {
|
||||
let ch = s[next_idx..].chars().next()?;
|
||||
if !ch.is_whitespace() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user