Skip to content

Commit

Permalink
chore : delete information message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeCP17 committed Nov 3, 2024
1 parent 46f883c commit b852e14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/domain/chat/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func createMessageCursorView(
hasNext, hasPrev bool,
nextMessageID, prevMessageID *uuid.UUID,
) *MessageCursorView {
// Type assertion for each possible row type
var messages []Message

switch v := row.(type) {
Expand Down Expand Up @@ -134,7 +133,6 @@ func createMessageCursorView(
}
}

// Conditionally set NextID and PrevID based on hasNext and hasPrev
nextID := nextMessageID
prevID := prevMessageID
if !hasNext {
Expand All @@ -144,7 +142,6 @@ func createMessageCursorView(
prevID = nil
}

// Construct and return MessageCursorView
return &MessageCursorView{
Items: &messages,
HasNext: hasNext,
Expand Down

0 comments on commit b852e14

Please sign in to comment.