Skip to content

Commit 2ebf666

Browse files
committed
made change to use undefined instead of null as classname
1 parent f7c333b commit 2ebf666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphRequestUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const urlJoin = (urlSegments: string[]): string => {
4141
*/
4242

4343
export const serializeContent = (content: any): any => {
44-
const className: string = content === undefined ? null : content.constructor.name;
44+
const className: string = content === undefined ? undefined : content.constructor.name;
4545
if (className === "Buffer" || className === "Blob" || className === "File" || className === "FormData" || typeof content === "string") {
4646
return content;
4747
}

0 commit comments

Comments
 (0)