From 9a404a3088a58e1e74cf560a723544cfe9b76df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Wed, 13 May 2015 07:53:32 -0700 Subject: [PATCH] Return nil for IB designables agent In Objective-C, the return value for a non-void method is the receiver by default. Hello NeXTSTEP. --- platform/ios/MGLAccountManager.m | 2 +- platform/ios/MGLMapboxEvents.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/ios/MGLAccountManager.m b/platform/ios/MGLAccountManager.m index 32540e4e461..2e3c0a38e4a 100644 --- a/platform/ios/MGLAccountManager.m +++ b/platform/ios/MGLAccountManager.m @@ -18,7 +18,7 @@ @implementation MGLAccountManager // + (instancetype) sharedManager { if (NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) { - return; + return nil; } static dispatch_once_t onceToken; static MGLAccountManager *_sharedManager; diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 9fcfc715369..2b9d8877778 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -280,7 +280,7 @@ - (instancetype) init { // + (instancetype)sharedManager { if (NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) { - return; + return nil; } static dispatch_once_t onceToken; static MGLMapboxEvents *_sharedManager;