| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c826be commit 06a1c9b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,11 +61,7 @@ assert.AssertionError = function AssertionError(options) { | |||
| 61 | 61 | util.inherits(assert.AssertionError, Error); | |
| 62 | 62 | ||
| 63 | 63 | function truncate(s, n) { | |
| 64 | - if (typeof s === 'string') { | ||
| 65 | - return s.length < n ? s : s.slice(0, n); | ||
| 66 | - } else { | ||
| 67 | - return s; | ||
| 68 | - } | ||
| 64 | + return s.slice(0, n); | ||
| 69 | 65 | } | |
| 70 | 66 | ||
| 71 | 67 | function getMessage(self) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments