Skip to content

Commit

Permalink
fix ArrayIndexConfiguration constructor (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad authored Oct 18, 2024
1 parent d05c46b commit e2ea8b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Objective-C/CBLArrayIndexConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ - (instancetype) initWithPath: (NSString*) path
} else if ([expressions count] == 0 || [expressions[0] length] == 0) {
[NSException raise: NSInvalidArgumentException format:
@"Empty expressions is not allowed, use nil instead"];
} else {
self = [super initWithIndexType: kC4ArrayIndex
expressions: expressions];
}

self = [super initWithIndexType: kC4ArrayIndex
expressions: expressions];

if (self) {
_path = path;
_expressions = expressions;
Expand Down
2 changes: 1 addition & 1 deletion Objective-C/CBLIndexConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (instancetype) initWithIndexType: (C4IndexType)type expressions: (NSArray<NSSt
return self;
}

- (NSString*) getIndexSpecs {
- (NSString*) getIndexSpecs {
return [_expressions componentsJoinedByString: @","];
}

Expand Down

0 comments on commit e2ea8b2

Please sign in to comment.