Skip to content

Commit

Permalink
Merge pull request #560 from xmidt-org/fix-lint
Browse files Browse the repository at this point in the history
fix:Fix the complex length check.
  • Loading branch information
schmidtw authored Sep 5, 2024
2 parents f7b706c + 2b76d3e commit cba01f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translation/transport_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func deduceSET(wdmp *setWDMP, newCID, oldCID, syncCMC string) (err error) {

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

Expand Down

0 comments on commit cba01f6

Please sign in to comment.