remove redundant checks

This commit is contained in:
aakashb95
2025-12-15 15:11:10 +05:30
parent 18e0cfb327
commit 5ac32803dc
+1 -1
View File
@@ -49,7 +49,7 @@ class Integrations::Openai::ProcessorService < Integrations::LlmBaseService
tone = event['data']['tone'].presence
system_prompt = improve_prompt(selection, tone)
user_content = selection.present? ? improve_user_content(content, selection) : content
user_content = selection ? improve_user_content(content, selection) : content
make_api_call(build_api_call_body(system_prompt, user_content))
end