Skip to content

Commit

Permalink
Fix reused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashko Stubailo committed Feb 17, 2015
1 parent fb52887 commit 619642b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ var maybeShowBanners = function () {
var patchRelease = catalog.official.getReleaseVersion(
track, patchReleaseVersion);
if (patchRelease && patchRelease.recommended) {
var key = "patchrelease-" + track + "-" + patchReleaseVersion;
if (shouldShow(key)) {
var patchKey = "patchrelease-" + track + "-" + patchReleaseVersion;
if (shouldShow(patchKey)) {
runLog.log(
"=> A patch (" +
utils.displayRelease(track, patchReleaseVersion) +
Expand All @@ -134,8 +134,8 @@ var maybeShowBanners = function () {
var futureReleases = catalog.official.getSortedRecommendedReleaseVersions(
track, currentReleaseOrderKey);
if (futureReleases.length) {
var key = "futurerelease-" + track + "-" + futureReleases[0];
if (shouldShow(key)) {
var futureReleaseKey = "futurerelease-" + track + "-" + futureReleases[0];
if (shouldShow(futureReleaseKey)) {
runLog.log(
"=> " + utils.displayRelease(track, futureReleases[0]) +
" is available. Update this project with 'meteor update'.");
Expand Down

0 comments on commit 619642b

Please sign in to comment.