Skip to content

Commit 9e74697

Browse files
authored
Merge pull request #1215 from dart-lang/unnecessary_brace_in_string_interp
Clean up unnecessary braces in string interpolation.
2 parents 2a61ae8 + 2d611c1 commit 9e74697

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ String stripComments(String str) {
1717
} else if (line.startsWith('///')) {
1818
buf.write('${line.substring(3)}\n');
1919
} else {
20-
buf.write('${line}\n');
20+
buf.write('$line\n');
2121
}
2222
}
2323
} else {

test/compare_output_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ Map<String, String> _parseOutput(
169169

170170
if (type == 'A') {
171171
expect(p.isWithin(tempPath, path), isTrue,
172-
reason: '`${path}` should be within ${tempPath}');
172+
reason: '`$path` should be within $tempPath');
173173
path = p.relative(path, from: tempPath);
174174
} else {
175175
expect(p.isWithin(sourcePath, path), isTrue,
176-
reason: '`${path}` should be within ${sourcePath}');
176+
reason: '`$path` should be within $sourcePath');
177177
path = p.relative(path, from: sourcePath);
178178
}
179179

0 commit comments

Comments
 (0)