Issue #5933: Delete the redundant judgments