Skip to content

Commit

Permalink
change occurence of == to === in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz234 committed Oct 8, 2021
1 parent f5e998b commit 4940b88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ class AnimeFact extends EventEmitter {
const auth = this._auth;
if (!auth) throw new TypeError("Missing authorization token");
const params = {};
if (tags == undefined) {
if (tags === undefined) {
params.tags = "";
} else {
params.tags = tags;
}
if (minLength == undefined) {
if (minLength === undefined) {
params.minLength = "";
} else {
params.minLength = minLength;
}
if (maxLength == undefined) {
if (maxLength === undefined) {
params.maxLength = "";
} else {
params.maxLength = maxLength;
Expand Down

0 comments on commit 4940b88

Please sign in to comment.