Skip to content

Commit d898d85

Browse files
author
Danny McCormick
committed
Check null and undefined in queryParamsToStringHelper
1 parent ab5bc50 commit d898d85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/VsoClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class VsoClient {
184184
}
185185

186186
private queryParamsToStringHelper(queryParams: any, prefix: string): string {
187-
if (queryParams === undefined) {
187+
if (!queryParams) {
188188
return '';
189189
}
190190
let queryString: string = '';

0 commit comments

Comments
 (0)