_convertValue(resolve) {
        return (value) => {
            try {
                const existingTimer = this._commandTimeoutTimer;
                if (existingTimer) {
                    clearTimeout(existingTimer);
                    delete this._commandTimeoutTimer;
                }
                resolve(this.transformReply(value));
                this.isResolved = true;
            }
            catch (err) {
                this.reject(err);
            }
            return this.promise;
        };
    }
Convert the value from buffer to the target encoding.

@private
@param {Function} resolve The resolve function of the Promise
@returns {Function} A function to transform and resolve a value
@memberof Command