Commit def96ae
crypto: move _scrypt call out of handleError funct
This commit moves the _scrypt function call out of the handleError
function, which now only takes in an error object as its parameter.
The motivation for this is to hopefully improve readability as it was
not clear to me the first time I stepped through the code where the
actual call to _scrypt was.
PR-URL: #28318
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent ed8cee6 commit def96aeCopy full SHA for def96ae
File tree
Expand file treeCollapse file tree
1 file changed
+3
-5
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
Expand file treeCollapse file tree
1 file changed
+3
-5
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/scrypt.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/scrypt.js+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
| 55 | + |
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
62 | | - |
63 | | - |
| 61 | + |
64 | 62 | |
65 | 63 | |
66 | 64 | |
|
0 commit comments