-
-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove unreachable code finance #508
fix: remove unreachable code finance #508
Conversation
Codecov Report
@@ Coverage Diff @@
## main #508 +/- ##
==========================================
+ Coverage 99.33% 99.34% +0.01%
==========================================
Files 1920 1919 -1
Lines 176486 176318 -168
Branches 910 901 -9
==========================================
- Hits 175308 175164 -144
+ Misses 1122 1098 -24
Partials 56 56
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow the node 14 test fails, could you have a look?
@Shinigami92 I assume that test is wrong. Lines 180 to 187 in 431c108
Line 383 in 431c108
It just has a very low chance of failing (~0.2%). The test should be fixed like this: - expect(alphaText).match(/[b-oq-z]/);
+ expect(alphaText).match(/^[0-9b-oq-z]{5}$/); The same is true for the following test. |
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Created in relation to #375
The original issue only stated code for the following
if
statement:I also found, that the last
else
statement:has the same problem. So I removed the unreachable parts as well.