Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor cleanup

  • Loading branch information...
commit c8fd545b52da2526095e4d5e950a80b23d9aa69e 1 parent 45c040f
@derek authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/yql.js
View
10 lib/yql.js
@@ -19,9 +19,9 @@ YQL.exec = function(yqlQuery, callback, params, httpOpts) {
}
// Default the optional args
- callback = callback !== undefined ? callback : false;
- params = params !== undefined ? params : {};
- httpOpts = httpOpts !== undefined ? httpOpts : { ssl: false };
+ callback = (callback !== undefined ? callback : false);
+ params = (params !== undefined ? params : {});
+ httpOpts = (httpOpts !== undefined ? httpOpts : { ssl: false });
var host = 'query.yahooapis.com',
path = '/v1/public/yql',
@@ -29,8 +29,8 @@ YQL.exec = function(yqlQuery, callback, params, httpOpts) {
ssl = httpOpts.ssl;
// Required YQL paramaters
- params.env = params.env !== undefined ? params.env : 'http://datatables.org/alltables.env';
- params.format = params.format !== undefined ? params.format : 'json';
+ params.env = (params.env !== undefined ? params.env : 'http://datatables.org/alltables.env');
+ params.format = (params.format !== undefined ? params.format : 'json');
params.q = yqlQuery;
// Construct the querystring
Please sign in to comment.
Something went wrong with that request. Please try again.