| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7e5a834 commit ecd001a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ var Scribe = exports.Scribe = function(host, port, opt) { | |||
| 44 | 44 | } else if (opt.autoReconnectTimeout.constructor === Array) { | |
| 45 | 45 | for (var i = 0; i < opt.autoReconnectTimeout.length; i++) { | |
| 46 | 46 | var timeout = opt.autoReconnectTimeout[i]; | |
| 47 | - if (timeout.constructor === Number) { | ||
| 47 | + if (timeout.constructor !== Number) { | ||
| 48 | 48 | throw new Error("autoReconnectTimeout should be Number or Array of numbers"); | |
| 49 | 49 | } | |
| 50 | 50 | this.autoReconnectTimeout.push(timeout); | |
@@ -201,4 +201,4 @@ Scribe.prototype.send = function(category, message) { | |||
| 201 | 201 | ||
| 202 | 202 | this.queue.push(entry); | |
| 203 | 203 | this.flush(); | |
| 204 | - }; | ||
| 204 | + }; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments