Skip to content

Commit 2b76d3e

Browse files
committed
fix:Fix the complex length check.
1 parent f7b706c commit 2b76d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translation/transport_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func deduceSET(wdmp *setWDMP, newCID, oldCID, syncCMC string) (err error) {
3838

3939
// isValidSetWDMP helps verify a given Set WDMP object is valid for its context
4040
func isValidSetWDMP(wdmp *setWDMP) (isValid bool) {
41-
if emptyParams := wdmp.Parameters == nil || len(wdmp.Parameters) == 0; emptyParams {
41+
if len(wdmp.Parameters) == 0 {
4242
return wdmp.Command == CommandTestSet //TEST_AND_SET can have empty parameters
4343
}
4444

0 commit comments

Comments
 (0)