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