Skip to content

Commit 4ad9f8d

Browse files
committed
fix filter
1 parent cf64332 commit 4ad9f8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/dart/lib/src/input_file.dart.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class InputFile {
1010
/// and provide `bytes` for web platform
1111
InputFile({this.path, this.filename, this.contentType, this.bytes}) {
1212
if (kIsWeb && bytes == null) {
13-
throw {{ spec.title | caseUcfirs }}Exception('On web `bytes` is required');
13+
throw {{ spec.title | caseUcfirst }}Exception('On web `bytes` is required');
1414
} else if(!kIsWeb && path == null && bytes == null) {
15-
throw {{ spec.title | caseUcfirs }}Exception('On IO platforms one of `path` or `bytes` is required`);
15+
throw {{ spec.title | caseUcfirst }}Exception('On IO platforms one of `path` or `bytes` is required`);
1616
}
1717
}
1818
}

templates/flutter/lib/src/input_file.dart.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class InputFile {
1010
/// and provide `bytes` for web platform
1111
InputFile({this.path, this.filename, this.contentType, this.bytes}) {
1212
if (kIsWeb && bytes == null) {
13-
throw {{ spec.title | caseUcfirs }}Exception('On web `bytes` is required');
13+
throw {{ spec.title | caseUcfirst }}Exception('On web `bytes` is required');
1414
} else if(!kIsWeb && path == null && bytes == null) {
15-
throw {{ spec.title | caseUcfirs }}Exception('On IO platforms one of `path` or `bytes` is required`);
15+
throw {{ spec.title | caseUcfirst }}Exception('On IO platforms one of `path` or `bytes` is required`);
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)