Skip to content

Commit

Permalink
removed a check for protocol type in parse response
Browse files Browse the repository at this point in the history
  • Loading branch information
datadius committed Apr 24, 2024
1 parent ea410af commit 2393b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ParseResponse(reader io.Reader) (Response, error) {
responseType := buffer[0]
runeResponseType := rune(buffer[0])
message := ""
if responseType > 0 && (runeResponseType == Chmod || runeResponseType == Time) {
if responseType > 0 {
bufferedReader := bufio.NewReader(reader)
message, err = bufferedReader.ReadString('\n')
if err != nil {
Expand Down

0 comments on commit 2393b73

Please sign in to comment.