-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
It's not documented either by explanation or tests so we might as well remove it.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -593,9 +593,9 @@ func (c *clientHandler) handleGenericHash(param string, algo HASHAlgo, isCustomM | |
return nil | ||
} | ||
|
||
args, err := advSplitN(param, ' ', 3) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fclairamb
Author
Owner
|
||
args := strings.SplitN(param, " ", 3) | ||
|
||
if err != nil || len(args) < 1 { | ||
if len(args) < 1 { | ||
c.writeMessage(StatusSyntaxErrorParameters, fmt.Sprintf("invalid HASH parameters: %v", param)) | ||
} | ||
|
||
|
This file was deleted.
@fclairamb first of all sorry for not being able to help here. I have literally no time in this period.
No test case was added for this code but I guess it should handle quoted parameters like
HASH "my file.txt"
. MaybeunquoteSpaceSeparatedParams
can already handle this case. We should have some examples from @syncplify to be sure and probably this should be a separate commit