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

Commit 621157c

Browse files
committed
lint
1 parent e450111 commit 621157c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# frozen_string_literal: true
22
class AddUniqueAiStreamConversationUserIdIndex < ActiveRecord::Migration[7.1]
33
def change
4-
add_index :user_custom_fields, [:value], unique: true, where: "name = 'ai-stream-conversation-unique-id'"
4+
add_index :user_custom_fields,
5+
[:value],
6+
unique: true,
7+
where: "name = 'ai-stream-conversation-unique-id'"
58
end
69
end

lib/ai_bot/playground.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@ def reply_to(post, &blk)
451451
raw = reply.dup
452452
raw << "\n\n" << placeholder if placeholder.present? && !context[:skip_tool_details]
453453

454-
if blk && type != :tool_details
455-
blk.call(partial)
456-
end
454+
blk.call(partial) if blk && type != :tool_details
457455

458456
if stream_reply && !Discourse.redis.get(redis_stream_key)
459457
cancel&.call

0 commit comments

Comments
 (0)