Skip to content

Commit a8d7a01

Browse files
Techn1xstefanpenner
authored andcommitted
Fix for readonly hash args
1 parent 3608883 commit a8d7a01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/helpers/app-version.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ export function makeHelper(version) {
1313
// e.g. 1.0.0-alpha.1+4jds75hf
1414

1515
// Allow use of 'hideSha' and 'hideVersion' For backwards compatibility
16-
hash.versionOnly = hash.versionOnly || hash.hideSha;
17-
hash.shaOnly = hash.shaOnly || hash.hideVersion;
16+
let versionOnly = hash.versionOnly || hash.hideSha;
17+
let shaOnly = hash.shaOnly || hash.hideVersion;
1818

1919
let match = null;
2020

21-
if (hash.versionOnly) {
21+
if (versionOnly) {
2222
if (hash.showExtended) {
2323
match = version.match(versionExtendedRegExp); // 1.0.0-alpha.1
2424
} else {
2525
match = version.match(versionRegExp); // 1.0.0
2626
}
2727
}
2828

29-
if (hash.shaOnly) {
29+
if (shaOnly) {
3030
match = version.match(shaRegExp); // 4jds75hf
3131
}
3232

0 commit comments

Comments
 (0)