Small cleanup/fix

This commit is contained in:
Matt Low 2023-11-14 02:08:20 +00:00
parent 6fde3f8932
commit ec013236b8

View File

@ -140,9 +140,9 @@ var rmCmd = &cobra.Command{
shortName := args[0] shortName := args[0]
conversation, err := store.ConversationByShortName(shortName) conversation, err := store.ConversationByShortName(shortName)
if err != nil { if err != nil {
Fatal("Cloud not search for conversation: %v\n", err) Fatal("Could not search for conversation: %v\n", err)
} }
if conversation.ID == 0 || err != nil { if conversation.ID == 0 {
Fatal("Conversation not found with short name: %s\n", shortName) Fatal("Conversation not found with short name: %s\n", shortName)
} }
err = store.DeleteConversation(conversation) err = store.DeleteConversation(conversation)