Polish
Closes gh-5925
This commit is contained in:
committed by
Stephane Nicoll
parent
afec397edd
commit
7c34dd87c1
@@ -45,8 +45,7 @@ class ContentContainingCondition extends Condition<File> {
|
||||
Reader reader = null;
|
||||
try {
|
||||
reader = new FileReader(value);
|
||||
String content = FileCopyUtils.copyToString(new FileReader(value));
|
||||
System.out.println(content);
|
||||
String content = FileCopyUtils.copyToString(reader);
|
||||
return content.contains(this.toContain);
|
||||
}
|
||||
catch (IOException ex) {
|
||||
|
||||
Reference in New Issue
Block a user