Skip to content

Commit

Permalink
made change to use undefined instead of null as classname
Browse files Browse the repository at this point in the history
  • Loading branch information
krototype committed Sep 17, 2019
1 parent f7c333b commit 2ebf666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphRequestUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const urlJoin = (urlSegments: string[]): string => {
*/

export const serializeContent = (content: any): any => {
const className: string = content === undefined ? null : content.constructor.name;
const className: string = content === undefined ? undefined : content.constructor.name;
if (className === "Buffer" || className === "Blob" || className === "File" || className === "FormData" || typeof content === "string") {
return content;
}
Expand Down

0 comments on commit 2ebf666

Please sign in to comment.