File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments