Skip to content

Commit 17e60c4

Browse files
committed
formatted w/ 2.5.0
1 parent 18178ec commit 17e60c4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/src/common/model/pulls.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ class PullRequestInformation {
5959

6060
PullRequestInformation([this.isCompletePullRequest = false]);
6161

62-
static PullRequestInformation fromJSON(Map<String, dynamic> input,
63-
[PullRequestInformation into]) {
62+
static PullRequestInformation fromJSON(Map<String, dynamic> input, [PullRequestInformation into]) {
6463
if (input == null) return null;
6564

6665
var pr = into != null ? into : PullRequestInformation();
@@ -135,10 +134,7 @@ class PullRequest extends PullRequestInformation {
135134
pr.additionsCount = input['additions'];
136135
pr.deletionsCount = input['deletions'];
137136
pr.changedFilesCount = input['changed_files'];
138-
pr.labels = input['labels']
139-
?.cast<Map<String, dynamic>>()
140-
?.map<IssueLabel>(IssueLabel.fromJSON)
141-
?.toList();
137+
pr.labels = input['labels']?.cast<Map<String, dynamic>>()?.map<IssueLabel>(IssueLabel.fromJSON)?.toList();
142138
return pr;
143139
}
144140
}

0 commit comments

Comments
 (0)