mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
fix: accept suggestions
This commit is contained in:
@@ -107,8 +107,8 @@ extension LOUDS {
|
||||
static func getDataForLoudstxt3(_ identifier: String, indices: [Int], cache: Data? = nil, option: ConvertRequestOptions) -> [DicdataElement] {
|
||||
let binary: Data
|
||||
|
||||
if let cachedData = cache {
|
||||
binary = cachedData
|
||||
if let cache {
|
||||
binary = cache
|
||||
} else {
|
||||
do {
|
||||
let url = getLoudstxt3URL(identifier, option: option)
|
||||
@@ -135,8 +135,8 @@ extension LOUDS {
|
||||
static func getDataForLoudstxt3(_ identifier: String, indices: [(trueIndex: Int, keyIndex: Int)], cache: Data? = nil, option: ConvertRequestOptions) -> [(loudsNodeIndex: Int, dicdata: [DicdataElement])] {
|
||||
let binary: Data
|
||||
|
||||
if let cachedData = cache {
|
||||
binary = cachedData
|
||||
if let cache {
|
||||
binary = cache
|
||||
} else {
|
||||
do {
|
||||
let url = getLoudstxt3URL(identifier, option: option)
|
||||
|
||||
@@ -19,6 +19,7 @@ public extension ConvertRequestOptions {
|
||||
sharedContainerURL: URL,
|
||||
zenzaiMode: ZenzaiMode = .off,
|
||||
textReplacer: TextReplacer = .withDefaultEmojiDictionary(),
|
||||
preloadDictionary: Bool = false,
|
||||
metadata: ConvertRequestOptions.Metadata?
|
||||
) -> Self {
|
||||
#if os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
|
||||
@@ -46,6 +47,7 @@ public extension ConvertRequestOptions {
|
||||
sharedContainerURL: sharedContainerURL,
|
||||
textReplacer: textReplacer,
|
||||
zenzaiMode: zenzaiMode,
|
||||
preloadDictionary: preloadDictionary,
|
||||
metadata: metadata
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user