File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
OptimizelySDKCore/OptimizelySDKCore Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ + (nullable instancetype)initWithBuilderBlock:(nonnull OPTLYProjectConfigBuilder
54
54
}
55
55
56
56
- (instancetype )initWithBuilder : (OPTLYProjectConfigBuilder *)builder {
57
- // check for valid error handler and logger
57
+ // check for valid error handler
58
58
if (builder.errorHandler ) {
59
59
if (![OPTLYErrorHandler conformsToOPTLYErrorHandlerProtocol: [builder.errorHandler class ]]) {
60
60
NSError *error = [NSError errorWithDomain: OPTLYErrorHandlerMessagesDomain
Original file line number Diff line number Diff line change @@ -27,17 +27,13 @@ - (id) init {
27
27
}
28
28
29
29
- (id )initWithBlock : (OPTLYProjectConfigBuilderBlock)block {
30
+ if (!_datafile) {
31
+ return nil ;
32
+ }
30
33
self = [super init ];
31
34
if (self != nil ) {
32
35
block (self);
33
36
}
34
- else {
35
- return nil ;
36
- }
37
- if (_datafile == nil ) {
38
- return nil ;
39
- }
40
-
41
37
return self;
42
38
}
43
39
You can’t perform that action at this time.
0 commit comments