Skip to content

Commit 150917f

Browse files
authored
Fix linter issues on dev in update_tests.dart. (#1233)
1 parent c79bf6e commit 150917f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tool/update_tests.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void main(List<String> arguments) async {
3535
}
3636
}
3737

38-
print('${unchanged} tests were unchanged.');
38+
print('$unchanged tests were unchanged.');
3939
}
4040

4141
final _unsupportedPaths = [
@@ -72,8 +72,9 @@ Future<int> _updateTestFile(TestFile testFile) async {
7272
var pageWidth = testFile.pageWidth;
7373
if (pageWidth != null) {
7474
var columns = '$pageWidth columns';
75-
columns += ' ' * (pageWidth - columns.length) + '|';
76-
buffer.writeln(columns);
75+
buffer.write(columns);
76+
buffer.write(' ' * (pageWidth - columns.length));
77+
buffer.writeln('|');
7778
}
7879

7980
// TODO(rnystrom): This is duplicating logic in fix_test.dart. Ideally, we'd

0 commit comments

Comments
 (0)