Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Remove useless switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
qianyuan.wqy committed Sep 30, 2019
1 parent ce42fd6 commit 3919fdb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ios/sdk/WeexSDK/Sources/Loader/WXResourceLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,7 @@ - (void)request:(WXResourceRequest *)request didReceiveResponse:(WXResourceRespo
WXLogDebug(@"request:%@ didReceiveResponse:%@ ", request, response);

_response = response;
id<WXConfigCenterProtocol> configCenter = [WXSDKEngine handlerForProtocol:@protocol(WXConfigCenterProtocol)];
if ([configCenter respondsToSelector:@selector(configForKey:defaultValue:isDefault:)]) {
BOOL isDefault;
BOOL clearResponseData = [[configCenter configForKey:@"iOS_weex_ext_config.clearResponseDataWhenDidReceiveResponse" defaultValue:@(NO) isDefault:&isDefault] boolValue];
if(clearResponseData) {
_data = nil;
}
}
_data = nil

if (self.onResponseReceived) {
self.onResponseReceived(response);
Expand Down

0 comments on commit 3919fdb

Please sign in to comment.