Skip to content

Commit

Permalink
change log to assert for inputWord
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Aug 28, 2024
1 parent 9a03db9 commit a906642
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Objective-C/Tests/Util/CBLWordEmbeddingModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a906642

Please sign in to comment.