[analyzer] Fix typo.
[analyzer] Remove redundant check as per Jordan's feedback.