Skip to content

Commit

Permalink
Remove the check for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Jul 7, 2020
1 parent 3a6ba3a commit a48507b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/src/toast.js
Expand Up @@ -188,10 +188,8 @@ class Toast {
}

_clearTimeout() {
if (this._timeout) {
clearTimeout(this._timeout)
this._timeout = null
}
clearTimeout(this._timeout)
this._timeout = null
}

// Static
Expand Down

0 comments on commit a48507b

Please sign in to comment.