From a9066428f6a74cef07cf55cbfc3bc578edd1844a Mon Sep 17 00:00:00 2001 From: Vlad Velicu Date: Wed, 28 Aug 2024 15:49:38 +0100 Subject: [PATCH] change log to assert for inputWord --- Objective-C/Tests/Util/CBLWordEmbeddingModel.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Objective-C/Tests/Util/CBLWordEmbeddingModel.m b/Objective-C/Tests/Util/CBLWordEmbeddingModel.m index e891b4fc0..344fd219f 100644 --- a/Objective-C/Tests/Util/CBLWordEmbeddingModel.m +++ b/Objective-C/Tests/Util/CBLWordEmbeddingModel.m @@ -39,11 +39,7 @@ - (CBLArray*) vectorForWord: (NSString*)word collection: (NSString*)collection { - (CBLDictionary*) predict: (CBLDictionary*)input { NSString* inputWord = [input stringForKey: @"word"]; - if (!inputWord) { - os_log_t log = os_log_create("CouchbaseLite", "OSLogging"); - os_log(log, "No word input !!!"); - return nil; - } + assert(inputWord); CBLArray* result = [self vectorForWord: inputWord collection: @"words"]; if (!result) {