Skip to content

Commit 964454b

Browse files
committed
Forgot to negate the entire assert.
Fixes #365
1 parent f54a643 commit 964454b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Tools/ServiceGenerator/SGGenerator.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ - (instancetype)initWithApi:(GTLRDiscovery_RestDescription *)api
342342
importPrefix:(NSString *)importPrefix {
343343
self = [super init];
344344
if (self != nil) {
345-
NSAssert(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) &&
346-
((options & kSGGeneratorOptionImportPrefixIsModular) != 0),
345+
NSAssert(!(((options & kSGGeneratorOptionImportPrefixIsFramework) != 0) &&
346+
((options & kSGGeneratorOptionImportPrefixIsModular) != 0)),
347347
@"Internal error, can't set both.");
348348
_api = api;
349349
_options = options;

0 commit comments

Comments
 (0)