♻️ Refactoring code

This commit is contained in:
Liyas Thomas
2019-11-25 05:44:44 +05:30
parent 0383403cce
commit a17239ca31
6 changed files with 15 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ try {
version.name = (await axios
.get("https://api.github.com/repos/liyasthomas/postwoman/releases")
// If we can't get it from GitHub, we'll resort to getting it from package.json
.catch(ex => ({
.catch((ex) => ({
data: [{
tag_name: require("./package.json").version
}]