Don't use main bundle if passed in bundle is nil

This commit is contained in:
Zorg committed 2015-07-01 00:35:27 -04:00
1 parent 4bbfac11aa
commit 0b7e343a56
1 file changed
-1
-1
View File
@@ -41,7 +41,6 @@ typedef struct {
{
if ((self = [super init]))
{
if (aBundle == nil) aBundle = [NSBundle mainBundle];
self.bundle = aBundle;
if (![self.bundle bundleIdentifier]) {
SULog(@"Error: the bundle being updated at %@ has no %@! This will cause preference read/write to not work properly.", self.bundle, kCFBundleIdentifierKey);