🔥 Better boolean conditions

This commit is contained in:
Liyas Thomas
2019-11-09 20:43:48 +05:30
parent 3b2fd26bd9
commit ca3abed605
3 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ try {
let version = {};
// Get the current version name as the tag from Git.
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag"]);
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag --sort=committerdate | tail -1"]);
// FALLBACK: If version.name was unset, let's grab it from GitHub.
if (!version.name) {