Skip to content

Commit fd281cf

Browse files
Prevent Cannot access 'isStrictVersion' before initialization
1 parent c9bbd80 commit fd281cf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80654,17 +80654,17 @@ async function getOTPVersion(otpSpec0, osVersion) {
8065480654
}
8065580655

8065680656
function requestedVersionFor(tool, version, originListing, mirrors) {
80657-
const isStrictVersion = isStrictVersion()
80657+
const isVersionTypeStrict = isStrictVersion()
8065880658

8065980659
let versionType = 'loose'
80660-
if (isStrictVersion) {
80660+
if (isVersionTypeStrict) {
8066180661
versionType = 'strict'
8066280662
}
8066380663

8066480664
let ret =
8066580665
`Requested ${versionType} ${tool} version (${version}) not found in version list, ` +
8066680666
`at ${originListing}${mirrors ? `, with mirrors ${mirrors}` : ''}.`
80667-
if (!isStrictVersion) {
80667+
if (!isVersionTypeStrict) {
8066880668
ret = `${ret} Should you be using option 'version-type': 'strict'?`
8066980669
}
8067080670

src/setup-beam.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,17 @@ async function getOTPVersion(otpSpec0, osVersion) {
192192
}
193193

194194
function requestedVersionFor(tool, version, originListing, mirrors) {
195-
const isStrictVersion = isStrictVersion()
195+
const isVersionTypeStrict = isStrictVersion()
196196

197197
let versionType = 'loose'
198-
if (isStrictVersion) {
198+
if (isVersionTypeStrict) {
199199
versionType = 'strict'
200200
}
201201

202202
let ret =
203203
`Requested ${versionType} ${tool} version (${version}) not found in version list, ` +
204204
`at ${originListing}${mirrors ? `, with mirrors ${mirrors}` : ''}.`
205-
if (!isStrictVersion) {
205+
if (!isVersionTypeStrict) {
206206
ret = `${ret} Should you be using option 'version-type': 'strict'?`
207207
}
208208

0 commit comments

Comments
 (0)