From 964454b1b812ef5b8c2f16f9961a8d2a0ab80404 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Mon, 11 May 2020 11:35:50 -0400 Subject: [PATCH] Forgot to negate the entire assert. Fixes #365 --- Source/Tools/ServiceGenerator/SGGenerator.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Tools/ServiceGenerator/SGGenerator.m b/Source/Tools/ServiceGenerator/SGGenerator.m index 36283dc1e..2a8963469 100644 --- a/Source/Tools/ServiceGenerator/SGGenerator.m +++ b/Source/Tools/ServiceGenerator/SGGenerator.m @@ -342,8 +342,8 @@ - (instancetype)initWithApi:(GTLRDiscovery_RestDescription *)api importPrefix:(NSString *)importPrefix { self = [super init]; if (self != nil) { - NSAssert(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) && - ((options & kSGGeneratorOptionImportPrefixIsModular) != 0), + NSAssert(!(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) && + ((options & kSGGeneratorOptionImportPrefixIsModular) != 0)), @"Internal error, can't set both."); _api = api; _options = options;