From 6faa7271588678fe484e6527ba69f196a7fd63ed Mon Sep 17 00:00:00 2001 From: Oliver Drobnik Date: Thu, 30 Jul 2015 14:54:15 +0200 Subject: [PATCH] Fixed OCLint Warning --- Core/Source/DTVersion.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Source/DTVersion.m b/Core/Source/DTVersion.m index 8fe66e6f..6fac3f23 100644 --- a/Core/Source/DTVersion.m +++ b/Core/Source/DTVersion.m @@ -97,10 +97,10 @@ + (DTVersion *)versionWithString:(NSString*)versionString + (DTVersion*)appBundleVersion { - NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; - DTVersion* retVersion = [DTVersion versionWithString:version]; - - return retVersion; + NSDictionary *info = [[NSBundle mainBundle] infoDictionary]; + NSString *version = info[@"CFBundleVersion"]; + + return [DTVersion versionWithString:version]; } + (DTVersion *)osVersion