-
Notifications
You must be signed in to change notification settings - Fork 245
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 small bug in VariantContextBuilder #1403
Conversation
- clean up braces while I'm at it.
@@ -435,6 +434,7 @@ public VariantContextBuilder passFilters() { | |||
*/ | |||
public VariantContextBuilder unfiltered() { | |||
this.filters = null; | |||
this.filtersCanBeModified = false; |
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.
this is the bugfix
|
||
|
||
@Test | ||
public void testCanResetFilters() { |
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.
this test failed prior to adding the bugfix.
Codecov Report
@@ Coverage Diff @@
## master #1403 +/- ##
===============================================
+ Coverage 68.116% 68.118% +0.003%
Complexity 8369 8369
===============================================
Files 573 573
Lines 33929 33938 +9
Branches 5667 5667
===============================================
+ Hits 23111 23118 +7
- Misses 8629 8631 +2
Partials 2189 2189
|
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.
@yfarjoun I changed the deeply nested
else {
if {}
}
blocks to flatter
else if {}
variants because I think they're more readable. Any objection?
* @return this builder | ||
*/ | ||
public VariantContextBuilder filters(final String ... filters) { | ||
if(filters == null){ |
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.
if(filters == null){ | |
if (filters == null) { |
builder.filters((Set<String>)null); | ||
builder.make(); | ||
} | ||
|
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.
remove NLs
Thanks @lbergelson for taking over this. happy with your changes with a few comments. Feel free to merge after addressing them. |
c05c1e2
to
f63282e
Compare
Description
Please explain the changes you made here.
Explain the motivation for making this change. What existing problem does the pull request solve?
Things to think about before submitting: