Skip to content

Commit

Permalink
removed an unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Feb 26, 2013
1 parent 264d5e4 commit fd67064
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ int bwt_smem1(const bwt_t *bwt, int len, const uint8_t *q, int x, int min_intv,
kv_push(bwtintv_t, *mem, ik);
}
} // otherwise the match is contained in another longer match
}
if (c >= 0 && ok[c].x[2] >= min_intv && (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2])) {
} else if (curr->n == 0 || ok[c].x[2] != curr->a[curr->n-1].x[2]) {
ok[c].info = p->info;
kv_push(bwtintv_t, *curr, ok[c]);
}
Expand Down

0 comments on commit fd67064

Please sign in to comment.