Skip to content

assert: remove unreachable code

There is only one entry in kReadableOperator that ends in Unequal. So the value assigned on line 392 can only be truthy if operator is notDeepEqual. Therefore, the ternary condition on line 394 is always true. Remove the ternary. Coverage reports confirm that the removed code is unused.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading