File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -891,15 +891,15 @@ class Pubspec {
891
891
/// [description] should be a noun phrase that describes whatever's being
892
892
/// parsed or processed by [fn] . [span] should be the location of whatever's
893
893
/// being processed within the pubspec.
894
- _wrapFormatException (String description, SourceSpan span, fn ()) {
894
+ T _wrapFormatException < T > (String description, SourceSpan span, T fn ()) {
895
895
try {
896
896
return fn ();
897
897
} on FormatException catch (e) {
898
898
_error ('Invalid $description : ${e .message }' , span);
899
899
}
900
900
}
901
901
902
- _wrapSpanFormatException (String description, fn ()) {
902
+ T _wrapSpanFormatException < T > (String description, T fn ()) {
903
903
try {
904
904
return fn ();
905
905
} on SourceSpanFormatException catch (e) {
You can’t perform that action at this time.
0 commit comments