Unnecessary new (#20138)
* enable lint unnecessary_new * fix tests * fix tests * fix tests
This commit is contained in:
committed by
GitHub
parent
d7a0dcaa4a
commit
d927c93310
@@ -29,7 +29,7 @@ abstract class TestProject {
|
||||
int lineContaining(String contents, String search) {
|
||||
final int index = contents.split('\n').indexWhere((String l) => l.contains(search));
|
||||
if (index == -1)
|
||||
throw new Exception("Did not find '$search' inside the file");
|
||||
throw Exception("Did not find '$search' inside the file");
|
||||
return index;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user