From 9dc31a25349ad62157df948a86ed6a60574c1d3a Mon Sep 17 00:00:00 2001 From: Nicolas Thouvenin Date: Tue, 21 May 2013 12:07:51 +0200 Subject: [PATCH] fixed #9 --- lib/sphinxapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sphinxapi.js b/lib/sphinxapi.js index 7f403af..f8893a4 100644 --- a/lib/sphinxapi.js +++ b/lib/sphinxapi.js @@ -320,7 +320,7 @@ SphinxClient.prototype.SetFieldWeights = function (weights) { }; SphinxClient.prototype.SetIndexWeights = function (weights) { var self = this - assert.equal(typeof item, 'object') + assert.equal(typeof weights, 'object') forEach(weights, function (item, index) { assert.equal(typeof item, 'number') })