babel icon indicating copy to clipboard operation
babel copied to clipboard

Apply demorgan's laws to simplify load code

Open sixolet opened this issue 9 years ago • 1 comments

Previously, the load code contained two branches on either side of an unconditional file load. Their predicates were the exact opposite of each other, according to Demorgan's laws.

Clarify the code by replacing the two confusing branches with one clearer branch.

This does not change functionality; there's no relevant bug in the system.

sixolet avatar Apr 02 '16 00:04 sixolet

Current coverage is 89.74%

Merging #371 into master will decrease coverage by -0.01% as of eb182fc

@@            master    #371   diff @@
======================================
  Files           23      23       
  Stmts         3854    3852     -2
  Branches         0       0       
  Methods          0       0       
======================================
- Hit           3459    3457     -2
  Partial          0       0       
  Missed         395     395       

Review entire Coverage Diff as of eb182fc

Powered by Codecov. Updated on successful CI builds.

codecov-io avatar Apr 02 '16 00:04 codecov-io