From 8ffd34488e8b540c5c554be96e213de68529f351 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Wed, 8 Jan 2014 14:49:48 -0800 Subject: [PATCH] Fix retain cycle in -oct_parsedResults Because `NSAssert` is a huge trollface. Hopefully fixes #142. --- OctoKit/RACSignal+OCTClientAdditions.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OctoKit/RACSignal+OCTClientAdditions.m b/OctoKit/RACSignal+OCTClientAdditions.m index 8d5e01f..4f9231d 100644 --- a/OctoKit/RACSignal+OCTClientAdditions.m +++ b/OctoKit/RACSignal+OCTClientAdditions.m @@ -13,7 +13,7 @@ @implementation RACSignal (OCTClientAdditions) - (RACSignal *)oct_parsedResults { return [self map:^(OCTResponse *response) { - NSAssert([response isKindOfClass:OCTResponse.class], @"Expected %@ to be an OCTResponse.", response); + NSCAssert([response isKindOfClass:OCTResponse.class], @"Expected %@ to be an OCTResponse.", response); return response.parsedResult; }]; }