Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
removed vestigial useless array handling code, will re-add if ever re…
Browse files Browse the repository at this point in the history
…quired
  • Loading branch information
hughrawlinson committed Mar 14, 2015
1 parent edde6e7 commit fa0e274
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"browser": true,
"devel": true,
"jquery": true,
"node": true,
"camelcase": false,
"immed": true,
"eqeqeq": true,
"eqnull": true,
"indent": 2,
"latedef": true,
"newcap": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"unused": false,
"globals": {
"it": true,
"describe": true
}
}
6 changes: 1 addition & 5 deletions lib/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ module.exports = function Network(randr) {

this._buildQuery = function _buildQuery(params) {
return _.map(params, function(value, key) {
if (_.isArray(value)) {
return key + '=' + value.join('&' + key + '=');
} else {
return key + '=' + value;
}
return key + '=' + value;
}).join('&');
};
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"coveralls": "^2.11.2",
"istanbul": "^0.3.7",
"jscoverage": "^0.5.9",
"jshint": "^2.6.3",
"mocha": "^2.2.0",
"mocha-lcov-reporter": "0.0.2"
}
Expand Down

0 comments on commit fa0e274

Please sign in to comment.