From 57b5a17a0af7dea5bad601416c04953eab4b37cd Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Fri, 30 May 2008 22:31:47 -0700 Subject: [PATCH] Fixed some formatting stuff. --- NSBundle+SUAdditions.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NSBundle+SUAdditions.m b/NSBundle+SUAdditions.m index 0d225b54..948e5d55 100644 --- a/NSBundle+SUAdditions.m +++ b/NSBundle+SUAdditions.m @@ -48,9 +48,9 @@ if (!iconPath) iconPath = [self pathForResource:[self objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType: nil]; NSImage *icon = [[[NSImage alloc] initWithContentsOfFile:iconPath] autorelease]; - if (icon) - return icon; else // Use a default icon if none is defined. - return [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericApplicationIcon)]; + // Use a default icon if none is defined. + if (!icon) { [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericApplicationIcon)]; } + return icon; } - (BOOL)isRunningFromDiskImage