Remove an unnecessary check

#3700 #3706
2 files changed