mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
chore(fix): lint
This commit is contained in:
@@ -75,7 +75,6 @@ type RuntimeChecker interface {
|
||||
ListChecks(ctx context.Context, botID string) []BotCheck
|
||||
}
|
||||
|
||||
|
||||
const (
|
||||
BotStatusCreating = "creating"
|
||||
BotStatusReady = "ready"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user