fix: command - always return non-nil command when parsing (fix #27)

To avoid panic when calling pcmd.Error in handlers.parse.
This commit is contained in:
Anton
2024-06-09 00:11:47 +05:00
parent ce62018609
commit 2e507f8319
178 changed files with 559 additions and 377 deletions

View File

@@ -42,6 +42,8 @@ func TestSetNXParse(t *testing.T) {
if err == nil {
testx.AssertEqual(t, cmd.key, test.want.key)
testx.AssertEqual(t, cmd.value, test.want.value)
} else {
testx.AssertEqual(t, cmd, test.want)
}
})
}