Skip to content

Commit

Permalink
#770 removed extra condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
olenagerasimova committed Dec 1, 2018
1 parent e6fc4cf commit 4cb2d0b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/takes/facets/hamcrest/HmHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ public void describeTo(final Description description) {
public boolean matchesSafely(final T item) {
try {
final Iterator<String> headers = HmHeader.headers(item).iterator();
if (headers.hasNext()) {
headers.next();
}
final Collection<String> values = new ArrayList<>(0);
while (headers.hasNext()) {
final String[] parts = HmHeader.split(headers.next());
Expand Down

0 comments on commit 4cb2d0b

Please sign in to comment.