diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index 042ba5a8c9..896974ddb1 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -352,12 +352,10 @@ export class HttpClient { // Figure out the headers. let headers: HttpHeaders|undefined = undefined; - if (!!options.headers !== undefined) { - if (options.headers instanceof HttpHeaders) { - headers = options.headers; - } else { - headers = new HttpHeaders(options.headers); - } + if (options.headers instanceof HttpHeaders) { + headers = options.headers; + } else { + headers = new HttpHeaders(options.headers); } // Sort out parameters.