| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 59fff92 commit d80082f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -299,8 +299,7 @@ function isStringOrBuffer(val) { | |||
| 299 | 299 | } | |
| 300 | 300 | ||
| 301 | 301 | function parseKeyEncoding(enc, keyType, isPublic, objName) { | |
| 302 | - if (enc === null || typeof enc !== 'object') | ||
| 303 | - throw new ERR_INVALID_ARG_TYPE('options', 'object', enc); | ||
| 302 | + validateObject(enc, 'options'); | ||
| 304 | 303 | ||
| 305 | 304 | const isInput = keyType === undefined; | |
| 306 | 305 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments