aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAboutController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAboutController.m')
-rw-r--r--Source/SPAboutController.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPAboutController.m b/Source/SPAboutController.m
index 4e5c94f9..0e0e7a09 100644
--- a/Source/SPAboutController.m
+++ b/Source/SPAboutController.m
@@ -40,11 +40,10 @@
*/
- (void)awakeFromNib
{
- BOOL isNightly = NO;
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
// If the version string has a prefix of 'Nightly' then this is obviously a nighly build.
- if ([version hasPrefix:@"Nightly"]) isNightly = YES;
+ BOOL isNightly = [version hasPrefix:@"Nightly"];
// Set the application name, but only include the major version if this is not a nightly build.
[appNameVersionTextField setStringValue:(isNightly) ? @"Sequel Pro" : [NSString stringWithFormat:@"Sequel Pro %@", version]];