Skip to content

Commit 5e5529d

Browse files
committed
fix spell error
1 parent 9a099aa commit 5e5529d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/dart/lib/client.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Client {
9797
throw {{spec.title | caseUcfirst}}Exception(e.message);
9898
}
9999
if(responseType == ResponseType.bytes) {
100-
fif(e.response.headers['content-type'].contains('application/json')) {
100+
if(e.response.headers['content-type'].contains('application/json')) {
101101
final res = json.decode(utf8.decode(e.response.data));
102102
throw {{spec.title | caseUcfirst}}Exception(res['message'],res['code'], e.response);
103103
} else {

templates/flutter/lib/client.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Client {
128128
throw {{spec.title | caseUcfirst}}Exception(e.message);
129129
}
130130
if(responseType == ResponseType.bytes) {
131-
fif(e.response.headers['content-type'].contains('application/json')) {
131+
if(e.response.headers['content-type'].contains('application/json')) {
132132
final res = json.decode(utf8.decode(e.response.data));
133133
throw {{spec.title | caseUcfirst}}Exception(res['message'],res['code'], e.response);
134134
} else {

0 commit comments

Comments
 (0)