Made a boo-boo, play issues have been fixed.

This commit is contained in:
TheFlash787 2020-08-13 09:42:49 +01:00
parent b028a800a7
commit 4bef3a4aa0

View File

@ -548,7 +548,6 @@ exports.pullRemote = function(){
if(!error){
try {
data = DistroIndex.fromJSON(JSON.parse(body))
resolve(data)
} catch(e) {
reject('We cannot parse the JSON in the remote distribution file')
}
@ -574,6 +573,7 @@ exports.pullLocal = function(){
return new Promise((resolve, reject) => {
fs.readFile(DEV_MODE ? DEV_PATH : DISTRO_PATH, 'utf-8', (err, d) => {
if(!err){
logger.log(d)
try {
data = DistroIndex.fromJSON(JSON.parse(d))
resolve(data)