correctly detect stable
authorAJ ONeal <aj@therootcompany.com>
Sun, 3 May 2020 04:52:04 +0000 (04:52 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sun, 3 May 2020 04:52:04 +0000 (04:52 +0000)
golang/releases.js

index 7cc87cb153d553fe37e856861ee04b38579f06ea..0f5e80063296cec75a42b5dbce78e37e268202a8 100644 (file)
@@ -51,8 +51,8 @@ function getAllReleases(request) {
         all.releases.push({
           version: version,
           // all go versions >= 1.0.0 are effectively LTS
-          lts: (parts[0] > 0 && asset.stable) || false,
-          channel: asset.stable || 'beta',
+          lts: (parts[0] > 0 && release.stable) || false,
+          channel: release.stable || 'beta',
           date: '1970-01-01', // the world may never know
           os: os,
           arch: arch,