lib/legacy.js
/**
   * Loads backup data and stores it in memory.
   * @returns {Object|boolean} Settings object or false.
   */
Loads backup data and stores it in memory.
@returns {Object|boolean} Settings object or false.
Loads backup data and stores it in memory . @returns { Object|boolean } Settings object or false .
async load(file = this.path) {
    this.logMsg(`Loading backup settings from ${file}...`);
    try {
      const legacy = await readJson(file);
      this.updateData(legacy);
      return legacy;
    } catch (err) {
      this.logError('Failed to load backup settings!');
      return false;
    }
  }
async load ( file = this . path ) { this . logMsg ( ` ${ file } ` ) ; try { const legacy = await readJson ( file ) ; this . updateData ( legacy ) ; return legacy ; } catch ( err ) { this . logError ( 'Failed to load backup settings!' ) ; return false ; } }
Loads backup data and stores it in memory.
Loads backup data and stores it in memory .