Skip to content

Commit

Permalink
address two nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pbakaus committed Oct 15, 2018
1 parent b44ad15 commit c3f2010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/import_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const client = github.client(
});

const ghrepo = client.repo('ampproject/amphtml');
var latestReleaseTag = null;
let latestReleaseTag = null;

/*
* Downloads a markdown page from a Github repo folder.
Expand Down Expand Up @@ -268,6 +268,9 @@ request({
}, function (error, response, body) {

latestReleaseTag = body.tag_name; // updates global var, used in the other functions
if (!latestReleaseTag) {
throw 'Error: Could not retrieve latest release from Github.';
}

importSpecialPages();
downloadBuiltins();
Expand Down

0 comments on commit c3f2010

Please sign in to comment.