function _checkSync(ignore) {
    let reason = "";
    if (!this.enabled)
      reason = kSyncWeaveDisabled;
    else if (Services.io.offline)
      reason = kSyncNetworkOffline;
    else if (this.status.minimumNextSync > Date.now())
      reason = kSyncBackoffNotMet;
    else if ((this.status.login == MASTER_PASSWORD_LOCKED) &&
             Utils.mpLocked())
      reason = kSyncMasterPasswordLocked;
    else if (Svc.Prefs.get("firstSync") == "notReady")
      reason = kFirstSyncChoiceNotMade;

    if (ignore && ignore.indexOf(reason) != -1)
      return "";

    return reason;
  }
/**
   * Determine if a sync should run.
   *
   * @param ignore [optional]
   *        array of reasons to ignore when checking
   *
   * @return Reason for not syncing; not-truthy if sync should run
   */
Determine if a sync should run.
@param ignore [optional]
array of reasons to ignore when checking

@return Reason for not syncing; not-truthy if sync should run
Determine if a sync should run . @param ignore [ optional ] array of reasons to ignore when checking @return Reason for not syncing ; not - truthy if sync should run
function _checkSync(ignore) {
    let reason = "";
    if (!this.enabled)
      reason = kSyncWeaveDisabled;
    else if (Services.io.offline)
      reason = kSyncNetworkOffline;
    else if (this.status.minimumNextSync > Date.now())
      reason = kSyncBackoffNotMet;
    else if ((this.status.login == MASTER_PASSWORD_LOCKED) &&
             Utils.mpLocked())
      reason = kSyncMasterPasswordLocked;
    else if (Svc.Prefs.get("firstSync") == "notReady")
      reason = kFirstSyncChoiceNotMade;
    if (ignore && ignore.indexOf(reason) != -1)
      return "";
    return reason;
  }
function _checkSync ( ignore ) { let reason = "" ; if ( ! this . enabled ) reason = kSyncWeaveDisabled ; else if ( Services . io . offline ) reason = kSyncNetworkOffline ; else if ( this . status . minimumNextSync > Date . now ( ) ) reason = kSyncBackoffNotMet ; else if ( ( this . status . login == MASTER_PASSWORD_LOCKED ) && Utils . mpLocked ( ) ) reason = kSyncMasterPasswordLocked ; else if ( Svc . Prefs . get ( "firstSync" ) == "notReady" ) reason = kFirstSyncChoiceNotMade ; if ( ignore && ignore . indexOf ( reason ) != - 1 ) return "" ; return reason ; }
Determine if a sync should run.
Determine if a sync should run .