Skip to content

Commit 0b5ae7e

Browse files
committed
🎨
1 parent 8acba2f commit 0b5ae7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ exports.sign = function (options, callback) {
66
var signOptions = Object.assign({}, options)
77

88
var hashes = signOptions.hash
9-
if (!hashes) {
10-
hashes = ['sha1', 'sha256']
11-
} else {
9+
if (hashes) {
1210
hashes = Array.isArray(hashes) ? hashes.slice() : [hashes]
11+
} else {
12+
hashes = ['sha1', 'sha256']
1313
}
1414

1515
var finalPath = getOutputPath(signOptions.path)

0 commit comments

Comments
 (0)