mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +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)
|
||||
*/
|
||||
public async updateProvider(id: OcrProviderId, data: Partial<PatchOcrProviderRequest>): Promise<PatchOcrProviderResponse> {
|
||||
public async updateProvider(
|
||||
id: OcrProviderId,
|
||||
data: Partial<PatchOcrProviderRequest>
|
||||
): Promise<PatchOcrProviderResponse> {
|
||||
try {
|
||||
await this.ensureInitialized()
|
||||
const result = await ocrProviderRepository.update(id, data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user