Skip to content

Commit

Permalink
Resolve post- merge-conflict resolution issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Aug 3, 2023
1 parent 08ad497 commit fedde08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9979,11 +9979,9 @@ async function maybeInstallRebar3(rebar3Spec) {

async function getOTPVersion(otpSpec0, osVersion) {
const otpVersions = await getOTPVersions(osVersion)
let otpSpec = otpSpec0.replace(/^OTP-/, '')
const otpVersion = getVersionFromSpec(
otpSpec,
Array.from(otpVersions.keys()).sort(),
)
let spec = otpSpec0.replace(/^OTP-/, '')
const versions = otpVersions
const otpVersion = getVersionFromSpec(spec, versions)
if (otpVersion === null) {
throw new Error(
`Requested Erlang/OTP version (${otpSpec0}) not found in version list ` +
Expand Down
8 changes: 3 additions & 5 deletions src/setup-beam.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,9 @@ async function maybeInstallRebar3(rebar3Spec) {

async function getOTPVersion(otpSpec0, osVersion) {
const otpVersions = await getOTPVersions(osVersion)
let otpSpec = otpSpec0.replace(/^OTP-/, '')
const otpVersion = getVersionFromSpec(
otpSpec,
Array.from(otpVersions.keys()).sort(),
)
let spec = otpSpec0.replace(/^OTP-/, '')
const versions = otpVersions
const otpVersion = getVersionFromSpec(spec, versions)
if (otpVersion === null) {
throw new Error(
`Requested Erlang/OTP version (${otpSpec0}) not found in version list ` +
Expand Down

0 comments on commit fedde08

Please sign in to comment.