We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if
then
else
https://github.com/answerdev/answer/blob/c34923031da16df9c8a22db57c3b03db63f4f510/internal/repo/activity/answer_repo.go#L290-L294
Either the whole conditional can be replaced by msg.ObjectType = constant.AnswerObjectType or the else branch should be fixed.
msg.ObjectType = constant.AnswerObjectType
(found by revive while testing it on answer code base)
The text was updated successfully, but these errors were encountered:
@chavacava Thanks for the feedback, we will optimise this part of the code.
Sorry, something went wrong.
fix(activity): remove identical block fix #559
f0ebcaf
Fixed.
LinkinStars
No branches or pull requests
https://github.com/answerdev/answer/blob/c34923031da16df9c8a22db57c3b03db63f4f510/internal/repo/activity/answer_repo.go#L290-L294
Either the whole conditional can be replaced by
msg.ObjectType = constant.AnswerObjectType
or theelse
branch should be fixed.(found by revive while testing it on answer code base)
The text was updated successfully, but these errors were encountered: