Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit e88d5b5

Browse files
committed
lint
1 parent f59d530 commit e88d5b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ai_bot/tools/google.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ def invoke
3939
api_key = SiteSetting.ai_google_custom_search_api_key
4040
cx = SiteSetting.ai_google_custom_search_cx
4141

42-
if options[:base_query].present?
43-
query = "#{options[:base_query]} #{query}"
44-
end
42+
query = "#{options[:base_query]} #{query}" if options[:base_query].present?
4543

4644
escaped_query = CGI.escape(query)
4745
uri =

0 commit comments

Comments
 (0)