fix jshint errors for lib/copystream.js

This commit is contained in:
Philipp Borgers 2013-01-21 14:30:36 +01:00
parent cedcf0ca35
commit 616804dc0d

View File

@ -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;