From 60446904df433f0abed2b082f7d9e02904c2575b Mon Sep 17 00:00:00 2001 From: tisfeng Date: Sat, 27 Jan 2024 10:51:29 +0800 Subject: [PATCH] perf: rename variable --- Easydict/Feature/Service/Gemini/GeminiService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Easydict/Feature/Service/Gemini/GeminiService.swift b/Easydict/Feature/Service/Gemini/GeminiService.swift index d8965e1c0..6df5cfcff 100644 --- a/Easydict/Feature/Service/Gemini/GeminiService.swift +++ b/Easydict/Feature/Service/Gemini/GeminiService.swift @@ -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 {