mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 13:59:28 +08:00
refactor(ocr): improve readability of updateProvider method signature
Split long method signature into multiple lines for better readability
This commit is contained in:
parent
4fd3300ed0
commit
933d26e0f4
@ -170,7 +170,10 @@ class OcrService {
|
|||||||
/**
|
/**
|
||||||
* Update OCR provider (partial update)
|
* Update OCR provider (partial update)
|
||||||
*/
|
*/
|
||||||
public async updateProvider(id: OcrProviderId, data: Partial<PatchOcrProviderRequest>): Promise<PatchOcrProviderResponse> {
|
public async updateProvider(
|
||||||
|
id: OcrProviderId,
|
||||||
|
data: Partial<PatchOcrProviderRequest>
|
||||||
|
): Promise<PatchOcrProviderResponse> {
|
||||||
try {
|
try {
|
||||||
await this.ensureInitialized()
|
await this.ensureInitialized()
|
||||||
const result = await ocrProviderRepository.update(id, data)
|
const result = await ocrProviderRepository.update(id, data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user