浏览代码

sprunge-plugin: Remove the unnecessary while loop.

Thomas (nezza-_-) Roth 12 年之前
父节点
当前提交
54a30c4701
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      plugins/sprunge/sprunge.plugin.zsh

+ 1 - 3
plugins/sprunge/sprunge.plugin.zsh

@@ -57,8 +57,6 @@ sprunge() {
 	  fi
 	else
 	  echo Using input from a pipe or STDIN redirection... >&2
-	  while IFS= read -r line ; do
-		echo $line
-	  done | curl -F 'sprunge=<-' http://sprunge.us
+	  curl -F 'sprunge=<-' http://sprunge.us
 	fi
 }