Unclear message for issue 'simplify append'

In the below snippet, Its not very clear on what could simplify append(permutations, BadExpr, permutations, BadExpr, ) to append(permutations, BadExpr, permutations, BadExpr, ) means.

Can someone help

1 Like

The first argument to append must be a slice, not a map. Also, {in, true} is not a valid expression in Go. You may want to use permutations[in] = true.

This particular instance of issue raised, however, is a bug on DeepSource’s end. This issue should not be raised in case of invalid expressions. Thank you for reporting it. We will revert with a fix as soon as possible.

1 Like

Thanks @sourya for the quick response. Yeah that makes sense.

Just statrted using the product and loving it so far…

2 Likes