diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index f7c3618d..69b698e2 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -41,7 +41,7 @@ typedef struct { { if ((self = [super init])) { - if (aBundle == nil) aBundle = [NSBundle mainBundle]; + NSParameterAssert(aBundle); 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);