diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-10-20 11:46:37 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-10-20 11:46:37 -0700 |
commit | 74b57f425724aa07f5b09ef7003d1d4cac21065a (patch) | |
tree | 750b357f5e0fc07b1bc57f86ea4410cc2acbd3b3 /SmartDeviceLink/SDLDialNumber.m | |
parent | a277c6e42c672d75e9f5a3f28363f6e3d1c9cdf7 (diff) | |
download | sdl_ios-74b57f425724aa07f5b09ef7003d1d4cac21065a.tar.gz |
rewrote initializers to look nicer.
Diffstat (limited to 'SmartDeviceLink/SDLDialNumber.m')
-rw-r--r-- | SmartDeviceLink/SDLDialNumber.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLDialNumber.m b/SmartDeviceLink/SDLDialNumber.m index e6704a14d..2bc41beb5 100644 --- a/SmartDeviceLink/SDLDialNumber.m +++ b/SmartDeviceLink/SDLDialNumber.m @@ -21,9 +21,13 @@ } - (instancetype)initWithNumber:(NSString *)number { - if (self = [self init]) { - self.number = number; + self = [self init]; + if (!self) { + return nil; } + + self.number = number; + return self; } |