Skip to content

Commit

Permalink
[ADAM-1383] Use gt instead of gteq in FASTQ input format line size ch…
Browse files Browse the repository at this point in the history
…ecks.

Resolves #1383.
  • Loading branch information
fnothaft authored and heuermh committed Feb 21, 2017
1 parent 0e57357 commit 8c8b944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -71,7 +71,7 @@ private static class InterleavedFastqRecordReader extends FastqRecordReader {
* formatted pair of FASTQ records.
*/
protected boolean checkBuffer(final int bufferLength, final Text buffer) {
return (bufferLength >= 2 &&
return (bufferLength > 2 &&
buffer.getBytes()[0] == '@' &&
buffer.getBytes()[bufferLength - 2] == '/' &&
buffer.getBytes()[bufferLength - 1] == '1');
Expand Down
Expand Up @@ -62,7 +62,7 @@ private static class SingleFastqRecordReader extends FastqRecordReader {
* formatted pair of FASTQ records.
*/
protected boolean checkBuffer(final int bufferLength, final Text buffer) {
return (bufferLength >= 0 &&
return (bufferLength > 0 &&
buffer.getBytes()[0] == '@');
}

Expand Down

0 comments on commit 8c8b944

Please sign in to comment.