mirror of
https://github.com/araxiaonline/wow-client-patcher.git
synced 2026-06-13 03:12:24 -04:00
removed comments vfor code not needed
This commit is contained in:
@@ -136,25 +136,14 @@ export default class FileManager {
|
||||
const cacheFolder = await this.GetCacheFolder();
|
||||
const downloader = this.DownloaderInstance();
|
||||
const content = await downloader.getRemoteContent('version.json');
|
||||
// const result = await downloader.downloadFileSync(
|
||||
// 'version.json',
|
||||
// path.join(cacheFolder,'version.json')
|
||||
// );
|
||||
|
||||
if (!content) {
|
||||
throw new Error('Failed to download version file');
|
||||
}
|
||||
|
||||
// if(!existsSync(path.join(this.basePath, cacheFolder, 'version.json'))) {
|
||||
// throw new Error('No version file found');
|
||||
// }
|
||||
|
||||
const parsed: any = JSON.parse(content);
|
||||
this.remoteVersions = parsed.versions as Versions;
|
||||
|
||||
// const parsed = await readJsonSync(path.join(this.basePath, cacheFolder, 'version.json'), 'utf8');
|
||||
// this.remoteVersions = parsed.versions as Versions;
|
||||
|
||||
return this.remoteVersions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user