Closed kahgoh closed 2 years ago
I think this is a localization error.
The output from go-analyzer is the following:
{
"status": "approve",
"comments": [
{
"comment": "go.general.taking_length_of_string_to_check_empty",
"params": {
"name": "result"
}
}
]
}
When I fix this from the example code given (by using if result == ""
instead), the message goes away.
@mhutter Thanks for checking on this. I created a PR with the fix.
In the raindrops exercise, the analyzer gives the following comment, even though the variable is already declared and initialized on one line:
This was the code in the iteration:
I also tried using
var result = ""
instead, but still got the same comment from the analyzer.