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

@@ -37,6 +37,8 @@ func TestSInterParse(t *testing.T) {
testx.AssertEqual(t, err, test.err)
if err == nil {
testx.AssertEqual(t, cmd.keys, test.want.keys)
} else {
testx.AssertEqual(t, cmd, test.want)
}
})
}