Skip to content

Commit

Permalink
Avoid null references
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jul 24, 2018
1 parent 427ce6c commit bc09c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/request/node/requestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class RequestService implements IRequestService {

request(options: IRequestOptions, requestFn: IRequestFunction = request): TPromise<IRequestContext> {
if (this.isOfflineMode) {
return TPromise.as(null);
return TPromise.as({ res: { headers: {}, }, stream: null });
}

this.logService.trace('RequestService#request', options.url);
Expand Down

0 comments on commit bc09c7b

Please sign in to comment.