Skip to content

Commit

Permalink
Assert processor - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
williamniemiec committed Dec 28, 2020
1 parent 80385bb commit a04aae4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* stop if an assert fails.
*
* @author William Niemiec < [email protected] >
* @version 6.0.0
* @version 6.0.2
* @since 6.0.0
*/
public class AssertProcessor extends SourceCodeProcessor {
Expand Down Expand Up @@ -40,7 +40,7 @@ public AssertProcessor(List<String> sourceCode) {
//---------------------------------------------------------------------
@Override
protected String processLine(String line) {
if (line.contains("try ") || getPreviousLine().contains("try "))
if (!inAssert && (line.contains("try ") || getPreviousLine().contains("try ")))
return line;

String processedLine = line;
Expand Down

0 comments on commit a04aae4

Please sign in to comment.