File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,10 +40,7 @@ protected boolean matchesSafely(final Token item,
4040 final Description mismatchDescription ) {
4141 mismatchDescription .appendText ("token type is " );
4242 mismatchDescription .appendValue (item .type );
43- if (item .type == expectedType ) {
44- return true ;
45- }
46- return false ;
43+ return item .type == expectedType ;
4744 }
4845 };
4946 }
@@ -61,10 +58,7 @@ protected boolean matchesSafely(final Token item,
6158 final Description mismatchDescription ) {
6259 mismatchDescription .appendText ("token content is " );
6360 mismatchDescription .appendValue (item .content .toString ());
64- if (expectedContent .equals (item .content .toString ())) {
65- return true ;
66- }
67- return false ;
61+ return expectedContent .equals (item .content .toString ());
6862 }
6963 };
7064 }
You can’t perform that action at this time.
0 commit comments