Skip to content

Commit 1f342bf

Browse files
nikithauczengin
andauthored
Changing the conditional expression to check for undefined or null headers
Co-authored-by: Mustafa Zengin <muzengin@microsoft.com>
1 parent 099fa02 commit 1f342bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class GraphRequest {
310310
* @returns nothing
311311
*/
312312
private setHeaderContentType(): void {
313-
if (this._headers === undefined || this._headers === null) {
313+
if (!this._headers) {
314314
this.header("Content-Type", "application/json");
315315
}
316316
let isContentTypePresent = false;

0 commit comments

Comments
 (0)