Skip to content

Commit 28068c8

Browse files
committed
Undo unnecessary cast
1 parent f159c38 commit 28068c8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/src/common/git_service.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ class GitService extends Service {
102102
body: body, headers: headers)
103103
.then((response) {
104104
return GitReference
105-
.fromJSON(JSON.decode(response.body) as Map<String, dynamic>)
106-
as Future<GitReference>;
105+
.fromJSON(JSON.decode(response.body) as Map<String, dynamic>);
107106
});
108107
}
109108

lib/src/common/issues_service.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ class IssuesService extends Service {
156156
throw new GitHubError(_github, response.body);
157157
}
158158

159-
return Issue.fromJSON(JSON.decode(response.body) as Map<String, dynamic>)
160-
as Future<Issue>;
159+
return Issue.fromJSON(JSON.decode(response.body) as Map<String, dynamic>);
161160
}
162161

163162
/// Lists all available assignees (owners and collaborators) to which issues

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy