Skip to content

Commit 4dfcbd8

Browse files
authored
Enable and fix lint unnecessary_brace_in_string_interps (#313)
1 parent 13c40fd commit 4dfcbd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ linter:
6262
- throw_in_finally
6363
- type_init_formals
6464
- unawaited_futures
65-
# unnecessary_brace_in_string_interps
65+
- unnecessary_brace_in_string_interps
6666
- unnecessary_const
6767
- unnecessary_getters_setters
6868
- unnecessary_lambdas

test/multipart_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121

2222
test('boundary characters', () {
2323
var testBoundary = String.fromCharCodes(BOUNDARY_CHARACTERS);
24-
var contentType = MediaType.parse('text/plain; boundary=${testBoundary}');
24+
var contentType = MediaType.parse('text/plain; boundary=$testBoundary');
2525
var boundary = contentType.parameters['boundary'];
2626
expect(boundary, testBoundary);
2727
});

0 commit comments

Comments
 (0)