Skip to content

Commit

Permalink
Forgot to negate the entire assert.
Browse files Browse the repository at this point in the history
Fixes #365
  • Loading branch information
thomasvl committed May 11, 2020
1 parent f54a643 commit 964454b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Tools/ServiceGenerator/SGGenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 964454b

Please sign in to comment.