mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
fix: add else clause
This commit is contained in:
@@ -54,6 +54,8 @@ struct TypoCorrectionGenerator {
|
||||
if self.nodes.endIndex <= count {
|
||||
if let result {
|
||||
return result
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
}
|
||||
// 訂正数上限(3個)
|
||||
@@ -63,6 +65,8 @@ struct TypoCorrectionGenerator {
|
||||
if count + correct.count > self.nodes.endIndex {
|
||||
if let result {
|
||||
return result
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
}
|
||||
for element in correct {
|
||||
|
||||
Reference in New Issue
Block a user