From a9da0ce2d9353283724c15aba381b99a60218926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Wed, 1 Nov 2017 16:48:19 +0200 Subject: [PATCH] Remove unnecessary comments --- server/server/parser.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/server/parser.go b/server/server/parser.go index 5270ad2..be06729 100644 --- a/server/server/parser.go +++ b/server/server/parser.go @@ -19,7 +19,6 @@ func ProcessInput(c net.Conn, text string) error { commands := strings.Fields(text) commandsLen := len(commands) - // Possibly empty input, just go on. if commandsLen == 0 { return nil } @@ -28,7 +27,6 @@ func ProcessInput(c net.Conn, text string) error { switch thisCommand { case "get": - // Check arguments err := checkArgumentsLength(commandsLen, 2) if err != nil { return &InputError{thisCommand, err} @@ -40,7 +38,6 @@ func ProcessInput(c net.Conn, text string) error { return &InputError{thisCommand, err} } case "ls": - // Check arguments err := checkArgumentsLength(commandsLen, 1) if err != nil { return &InputError{thisCommand, err} @@ -51,7 +48,6 @@ func ProcessInput(c net.Conn, text string) error { return &InputError{thisCommand, err} } case "clear": - // Check arguments err := checkArgumentsLength(commandsLen, 1) if err != nil { return &InputError{thisCommand, err}