删除无用类型转换
This commit is contained in:
parent
8b4643871d
commit
fe8d92df92
@ -129,8 +129,7 @@ class Weibo {
|
||||
if (response.statusCode == HttpStatus.ok) {
|
||||
final String content = await utf8.decodeStream(response);
|
||||
return WeiboUserInfoResp.fromJson(
|
||||
(json.decode(content) as Map<dynamic, dynamic>)
|
||||
.cast<String, dynamic>());
|
||||
json.decode(content) as Map<String, dynamic>);
|
||||
}
|
||||
throw HttpException(
|
||||
'HttpResponse statusCode: ${response.statusCode}, reasonPhrase: ${response.reasonPhrase}.');
|
||||
|
Loading…
Reference in New Issue
Block a user