Skip to content
Browse files

Minor cleanup

  • Loading branch information...
1 parent 45c040f commit c8fd545b52da2526095e4d5e950a80b23d9aa69e @derek committed Mar 27, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/yql.js
View
10 lib/yql.js
@@ -19,18 +19,18 @@ 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',
queryString = '',
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

0 comments on commit c8fd545

Please sign in to comment.
Something went wrong with that request. Please try again.