Remove unnecessary comments
This commit is contained in:
parent
143430ff5f
commit
a9da0ce2d9
1 changed files with 0 additions and 4 deletions
|
@ -19,7 +19,6 @@ func ProcessInput(c net.Conn, text string) error {
|
||||||
commands := strings.Fields(text)
|
commands := strings.Fields(text)
|
||||||
commandsLen := len(commands)
|
commandsLen := len(commands)
|
||||||
|
|
||||||
// Possibly empty input, just go on.
|
|
||||||
if commandsLen == 0 {
|
if commandsLen == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -28,7 +27,6 @@ func ProcessInput(c net.Conn, text string) error {
|
||||||
|
|
||||||
switch thisCommand {
|
switch thisCommand {
|
||||||
case "get":
|
case "get":
|
||||||
// Check arguments
|
|
||||||
err := checkArgumentsLength(commandsLen, 2)
|
err := checkArgumentsLength(commandsLen, 2)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
|
@ -40,7 +38,6 @@ func ProcessInput(c net.Conn, text string) error {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
}
|
}
|
||||||
case "ls":
|
case "ls":
|
||||||
// Check arguments
|
|
||||||
err := checkArgumentsLength(commandsLen, 1)
|
err := checkArgumentsLength(commandsLen, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
|
@ -51,7 +48,6 @@ func ProcessInput(c net.Conn, text string) error {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
}
|
}
|
||||||
case "clear":
|
case "clear":
|
||||||
// Check arguments
|
|
||||||
err := checkArgumentsLength(commandsLen, 1)
|
err := checkArgumentsLength(commandsLen, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
|
|
Loading…
Reference in a new issue