Skip to content

Commit

Permalink
broken pipe error: add else arm after broken pipe check
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Dec 5, 2022
1 parent 7c9dcb0 commit b30d3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ func (s *Stash) Write(data []byte) (int, error) {
if err != nil {
log.Printf("go-stash: %s | do re dial\n", err.Error())
}
} else {
return 0, err
}

return 0, err
}
return len(data), nil
}
Expand Down

0 comments on commit b30d3aa

Please sign in to comment.