Skip to content

Commit

Permalink
perf: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Jan 27, 2024
1 parent 8cd89c0 commit 6044690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Easydict/Feature/Service/Gemini/GeminiService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ public final class GeminiService: QueryService {

} else {
let outputContent = try await model.generateContent(prompt)
guard let line = outputContent.text else {
guard let resultString = outputContent.text else {
return
}

result.translatedResults = [line]
result.translatedResults = [resultString]
completion(result, nil)
}
} catch {
Expand Down

0 comments on commit 6044690

Please sign in to comment.