Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 7274784

Browse files
committed
Use err instead of ex in catch
1 parent 9a9dce2 commit 7274784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/pin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function pin (self) {
6666
update: (multihash, cb) => {
6767
try {
6868
multihashes.validate(multihash)
69-
} catch (ex) { return cb(ex) }
69+
} catch (err) { return cb(err) }
7070

7171
normalized.hashes.push(multihash)
7272
cb()

0 commit comments

Comments
 (0)