mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix jshint errors for lib/copystream.js
This commit is contained in:
parent
cedcf0ca35
commit
616804dc0d
@ -14,7 +14,7 @@ var CopyFromStream = function () {
|
||||
util.inherits(CopyFromStream, Stream);
|
||||
CopyFromStream.prototype._writable = function () {
|
||||
return !(this._finished || this._error);
|
||||
}
|
||||
};
|
||||
CopyFromStream.prototype.startStreamingToConnection = function (connection) {
|
||||
if (this._error) {
|
||||
return;
|
||||
@ -65,7 +65,7 @@ CopyFromStream.prototype._endIfNeedAndPossible = function () {
|
||||
this._finishedSent = true;
|
||||
this._connection.endCopyFrom();
|
||||
}
|
||||
}
|
||||
};
|
||||
CopyFromStream.prototype.write = function (string, encoding) {
|
||||
if (this._error || this._finished) {
|
||||
return false;
|
||||
@ -79,7 +79,7 @@ CopyFromStream.prototype.end = function (string, encondig) {
|
||||
this._finished = true;
|
||||
if (string !== undefined) {
|
||||
this._handleChunk.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
this._endIfNeedAndPossible();
|
||||
};
|
||||
CopyFromStream.prototype.error = function (error) {
|
||||
@ -123,7 +123,7 @@ CopyToStream.prototype._outputDataChunk = function () {
|
||||
};
|
||||
CopyToStream.prototype._readable = function () {
|
||||
return !this._finished && !this._error;
|
||||
}
|
||||
};
|
||||
CopyToStream.prototype.error = function (error) {
|
||||
if (!this.readable) {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user