Skip to content

Commit

Permalink
not that this mattered.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Oct 21, 2014
1 parent 9491ce5 commit ba51328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bigquery/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ Table.prototype.copy = function(options, callback) {
* @return {ReadableStream}
*/
Table.prototype.createReadStream = function(query) {
var that = this;
var stream = through.obj();
runQuery(query);
return stream;

function runQuery(query) {
this.makeReq_('', '', '', '', function(err, resp) {
that.makeReq_('', '', '', '', function(err, resp) {
if (err) {
stream.emit('error', err);
stream.end();
Expand Down

0 comments on commit ba51328

Please sign in to comment.