Skip to content

Commit

Permalink
fixed a bug that the threshold was not handed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
norm-ideal committed Oct 20, 2020
1 parent aa31d0e commit 2832c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redpen-core/src/main/java/cc/redpen/RedPen.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public List<ValidationError> validate(Document document) {
public List<ValidationError> validate(Document document, String threshold) {
List<Document> documents = new ArrayList<>();
documents.add(document);
Map<Document, List<ValidationError>> documentListMap = validate(documents);
Map<Document, List<ValidationError>> documentListMap = validate(documents, threshold);
return documentListMap.get(document);
}

Expand Down

0 comments on commit 2832c97

Please sign in to comment.