async _processSettings(data) {
    if (!data || !Object.keys(data).length) {
      if (typeof this.defaultSettings === 'function') {
        const settings = await this.defaultSettings();
        this.__settings = settings;
        await this.store();
        return settings;
      } else {
        return {};
      }
    }
    this.__settings = data;
    return data;
  }
/**
   * Processes data from settings file. Creates default settings if settings
   * file do not exists.
   *
   * @param {?Object} data Settings read from the settings file.
   * @return {Promise<Object>} Settings for the app.
   */
Processes data from settings file. Creates default settings if settings
file do not exists.

@param {?Object} data Settings read from the settings file.
@return {Promise} Settings for the app.
Processes data from settings file . Creates default settings if settings file do not exists . @param { ?Object } data Settings read from the settings file . @return { Promise } Settings for the app .
async _processSettings(data) {
    if (!data || !Object.keys(data).length) {
      if (typeof this.defaultSettings === 'function') {
        const settings = await this.defaultSettings();
        this.__settings = settings;
        await this.store();
        return settings;
      } else {
        return {};
      }
    }
    this.__settings = data;
    return data;
  }
async _processSettings ( data ) { if ( ! data || ! Object . keys ( data ) . length ) { if ( typeof this . defaultSettings === 'function' ) { const settings = await this . defaultSettings ( ) ; this . __settings = settings ; await this . store ( ) ; return settings ; } else { return { } ; } } this . __settings = data ; return data ; }
Processes data from settings file.
Processes data from settings file .