chore(fix): lint

This commit is contained in:
Acbox
2026-03-15 00:58:38 +08:00
parent ac8a935545
commit 020c74c2bc
5 changed files with 1 additions and 8 deletions
-1
View File
@@ -75,7 +75,6 @@ type RuntimeChecker interface {
ListChecks(ctx context.Context, botID string) []BotCheck
}
const (
BotStatusCreating = "creating"
BotStatusReady = "ready"
-4
View File
@@ -403,10 +403,6 @@ func extractThreadID(msg channel.InboundMessage) string {
return ""
}
func isGroupConversationType(conversationType string) bool {
return channel.NormalizeConversationType(conversationType) != channel.ConversationTypePrivate
}
func (r *IdentityResolver) tryLinkConfiglessChannelIdentityToUser(ctx context.Context, msg channel.InboundMessage, channelIdentityID string) string {
if r.registry == nil || !r.registry.IsConfigless(msg.Channel) {
return ""
@@ -80,7 +80,6 @@ func createBotForChatPresence(ctx context.Context, queries *sqlc.Queries, ownerU
}
row, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
OwnerUserID: pgOwnerID,
Type: "personal",
DisplayName: pgtype.Text{String: "presence-test-bot", Valid: true},
IsActive: true,
Metadata: meta,
@@ -78,7 +78,6 @@ func createUserBotAndSchedule(ctx context.Context, t *testing.T, queries *sqlc.Q
meta, _ := json.Marshal(map[string]any{"source": "schedule-integration-test"})
botRow, err := queries.CreateBot(ctx, sqlc.CreateBotParams{
OwnerUserID: pgOwnerID,
Type: "personal",
DisplayName: pgtype.Text{String: "schedule-test-bot", Valid: true},
AvatarUrl: pgtype.Text{},
IsActive: true,