Skip to content

Commit

Permalink
simplifying tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Meglali20 committed Mar 11, 2024
1 parent c666cd1 commit bc08c7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ParseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2131,9 +2131,8 @@ class ParseQuery {
* @returns {Parse.Query} Returns the query, so you can chain this call.
*/
comment(value: string): ParseQuery {
if (typeof value === 'undefined') {
if (value == null) {
delete this._comment;
this._comment = value;
return this;
}
if (typeof value !== 'string') {
Expand Down

0 comments on commit bc08c7f

Please sign in to comment.