Skip to content

Commit

Permalink
sync: Allow empty data for 200 responses (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw authored Jul 10, 2024
1 parent ffd77fe commit 52ffe5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/santasyncservice/SNTSyncStage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,7 @@ - (NSError *)performRequest:(NSURLRequest *)request
return error;
}
if (data.length == 0) {
NSString *errStr = @"Response is empty";
SLOGE(@"%@", errStr);
return [NSError errorWithDomain:@"com.google.santa.syncservice"
code:4
userInfo:@{NSLocalizedDescriptionKey : errStr}];
return nil;
}

if ([[SNTConfigurator configurator] syncEnableProtoTransfer]) {
Expand Down

0 comments on commit 52ffe5f

Please sign in to comment.