(expected uuid.NullUUID)
| 717 | } |
| 718 | |
| 719 | func (c *turnWorkspaceContext) currentWorkspaceMatches(expected uuid.NullUUID) (database.Chat, bool) { |
| 720 | chatSnapshot := c.currentChatSnapshot() |
| 721 | return chatSnapshot, nullUUIDEqual(chatSnapshot.WorkspaceID, expected) |
| 722 | } |
| 723 | |
| 724 | func nullUUIDEqual(left, right uuid.NullUUID) bool { |
| 725 | if left.Valid != right.Valid { |
no test coverage detected