Skip to content

Commit

Permalink
drop pointless loop
Browse files Browse the repository at this point in the history
We just reassign the data to itself in the loop, and then
break after reading one line.
  • Loading branch information
peff committed Nov 15, 2011
1 parent 4d98a02 commit 424194d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spark
Expand Up @@ -139,18 +139,13 @@ if test "$1" != ""
then
data="$1"
else
data=''

# check to see if stdin's a tty
if [ -t 0 ]; then
help
exit
fi

while read data; do
data=$data
break
done
read data
fi

setup_array $data
Expand Down

0 comments on commit 424194d

Please sign in to comment.