Skip to content

Commit 2d611c1

Browse files
committed
Cleaned up unnecessary braces in string interpolation.
Sniffed out by the `unnecessary_brace_in_string_interp` lint.
1 parent 604ab5d commit 2d611c1

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)