Skip to content

Commit

Permalink
remove unused code and prep for 0.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburke committed Apr 28, 2018
1 parent 12fb69e commit 2573833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ line printed.
[Find your target operating system](https://github.com/kevinburke/tss/releases) (darwin, windows, linux) and desired bin
directory, and modify the command below as appropriate:

curl --silent --location --output /usr/local/bin/tss https://github.com/kevinburke/tss/releases/download/0.3/tss-linux-amd64 && chmod 755 /usr/local/bin/tss
curl --silent --location --output /usr/local/bin/tss https://github.com/kevinburke/tss/releases/download/0.4/tss-linux-amd64 && chmod 755 /usr/local/bin/tss

The latest version is 0.3.
The latest version is 0.4.

If you have a Go development environment, you can also install via source code:

Expand Down
3 changes: 1 addition & 2 deletions lib/tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (w *Writer) Write(p []byte) (int, error) {
wrote := 0
now := time.Now()
pos := 0
var sbuf [9]byte
for {
// write everything up to the next newline
if w.endOfLine {
Expand All @@ -43,7 +42,6 @@ func (w *Writer) Write(p []byte) (int, error) {
s := TimeScaler(sinceStart)
for i := 0; i < 8-len(s); i++ {
w.buf.WriteByte(' ')
sbuf[i] = ' '
}
w.buf.WriteString(s)
w.buf.WriteByte(' ')
Expand All @@ -67,6 +65,7 @@ func (w *Writer) Write(p []byte) (int, error) {
wrote += idx + 1
pos += idx + 1
w.endOfLine = true
w.lastLine = now
if pos >= len(p) {
break
}
Expand Down

0 comments on commit 2573833

Please sign in to comment.