chore: minor code refactor

This commit is contained in:
James George 2019-09-18 14:32:54 +05:30 committed by GitHub
parent ddb86da459
commit b861c4a7b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ try {
runCommand("git", ["branch"])
.split("* ")[1]
.split(" ")[0] + (IS_DEV_MODE ? " - DEV MODE" : "");
if (version.variant === "" || version.variant === "master")
if (["", "master].includes(version.variant))
delete version.variant;
// Write version data into a file