From 2c433c16ac38f00cddfa2d7bc3521a6c2607e3d5 Mon Sep 17 00:00:00 2001 From: Christoph Grothaus Date: Wed, 14 Jun 2023 10:13:46 +0200 Subject: [PATCH] Fix OTP version null check --- src/setup-beam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup-beam.js b/src/setup-beam.js index dd988e8..83c0f96 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -170,7 +170,7 @@ async function getOTPVersion(otpSpec0, osVersion, hexMirrors) { if (isVersion(otpSpec0)) { otpSpec = `OTP-${otpSpec0}` // ... it's a version! } - if (otpVersion === null) { + if (otpVersion == null) { throw new Error( `Requested Erlang/OTP version (${otpSpec0}) not found in version list ` + "(should you be using option 'version-type': 'strict'?)",