From 2393b738f095d733fc6d2ec79af328ffc759bc0d Mon Sep 17 00:00:00 2001 From: Data Dius <16731794+datadius@users.noreply.github.com> Date: Wed, 24 Apr 2024 21:24:01 +0200 Subject: [PATCH] removed a check for protocol type in parse response --- protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.go b/protocol.go index f46d7ac..30dc260 100644 --- a/protocol.go +++ b/protocol.go @@ -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 {