Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ocd

this codebase is crappy
  • Loading branch information...
commit d3c5813b7ddb06eb379611680ee2182eb869a628 1 parent 5c6bc5d
@aheckmann authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/command.js
View
7 lib/command.js
@@ -187,10 +187,7 @@ module.exports = function (proto) {
if (Buffer.isBuffer(this.source)) {
proc.stdin.write(this.source);
proc.stdin.end();
- }
-
- // pipe in the sourceStream if present
- if (self.sourceStream) {
+ } else if (self.sourceStream) {
if (!self.sourceStream.readable && !self.bufferStream) {
err = new Error("gm().stream() or gm().write() with a non-readable " +
@@ -199,7 +196,7 @@ module.exports = function (proto) {
return cb(self, err);
}
- // handle streaming to gm errors when gm/imageMagick is not installed
+ // handle streaming errors when gm/imageMagick is not installed
proc.stdin.on('error', handlerr);
proc.stdout.on('error', handlerr);
function handlerr (err) {
Please sign in to comment.
Something went wrong with that request. Please try again.