"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Chainable_1 = require("../../chainable/Chainable");
class VoterFilter extends Chainable_1.ChainableFilter {
    constructor(voter) {
        super();
        this.voter = voter;
    }
    me() {
        return this;
    }
    take(error, op) {
        if (error)
            throw error;
        if (op.voter === this.voter)
            return this.give(undefined, op);
        return true;
    }
}
exports.VoterFilter = VoterFilter;
//# sourceMappingURL=VoterFilter.js.map