Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse

pull/7559/head
David Garcia Quintas 8 years ago
commit 1dddf9ca96
  1. 8
      src/objective-c/RxLibrary/transformations/GRXMappingWriter.m

@ -33,10 +33,6 @@
#import "GRXMappingWriter.h"
static id (^kIdentity)(id value) = ^id(id value) {
return value;
};
@interface GRXForwardingWriter () <GRXWriteable>
@end
@ -51,7 +47,9 @@ static id (^kIdentity)(id value) = ^id(id value) {
// Designated initializer
- (instancetype)initWithWriter:(GRXWriter *)writer map:(id (^)(id value))map {
if ((self = [super initWithWriter:writer])) {
_map = map ?: kIdentity;
_map = map ?: ^id(id value) {
return value;
};
}
return self;
}

Loading…
Cancel
Save