Skip to content

Commit e29936c

Browse files
authored
Merge pull request #458 from share/assert-agent
🥅 Remove agent check from QueryEmitter
2 parents d95eced + 10d40e0 commit e29936c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/query-emitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ QueryEmitter.prototype.queryPoll = function(callback) {
202202
var inserted = getInserted(idsDiff);
203203
if (inserted.length) {
204204
var snapshotOptions = {};
205-
if (emitter.agent) snapshotOptions.agentCustom = emitter.agent.custom;
205+
snapshotOptions.agentCustom = emitter.agent.custom;
206206

207207
function _getSnapshotBulkCb(err, snapshotMap) {
208208
if (err) return emitter._finishPoll(err, callback, pending);

0 commit comments

Comments
 (0)