protected function exit_no_update( $response, $branch = false ) {
		/**
		 * Filters the return value of exit_no_update.
		 *
		 * @since 6.0.0
		 * @return bool `true` will exit this function early, default will not.
		 */
		if ( apply_filters( 'ghu_always_fetch_update', false ) ) {
			return false;
		}

		if ( $branch ) {
			return empty( static::$options['branch_switch'] );
		}

		return ! isset( $_POST['ghu_refresh_cache'] ) && ! $response && ! $this->can_update_repo( $this->type );
	}
protected function exit_no_update( $response, $branch = false ) {
		/**
		 * Filters the return value of exit_no_update.
		 *
		 * @since 6.0.0
		 * @return bool `true` will exit this function early, default will not.
		 */
		if ( apply_filters( 'ghu_always_fetch_update', false ) ) {
			return false;
		}

		if ( $branch ) {
			return empty( static::$options['branch_switch'] );
		}

		return ! isset( $_POST['ghu_refresh_cache'] ) && ! $response && ! $this->can_update_repo( $this->type );
	}
protected function exit_no_update ( $ response , $ branch = false ) { /**
		 * Filters the return value of exit_no_update.
		 *
		 * @since 6.0.0
		 * @return bool `true` will exit this function early, default will not.
		 */ if ( apply_filters ( 'ghu_always_fetch_update' , false ) ) { return false ; } if ( $ branch ) { return empty ( static :: $ options [ 'branch_switch' ] ) ; } return ! isset ( $ _POST [ 'ghu_refresh_cache' ] ) && ! $ response && ! $ this -> can_update_repo ( $ this -> type ) ; }
Test to exit early if no update available, saves API calls.

@param array|bool $response
@param bool       $branch

@return bool
Test to exit early if no update available saves API calls .