@@ -14,8 +14,7 @@ class GitHubTrending {
1414 var res = await httpManager.netFetch (
1515 url, null , null , Options (contentType: "text/plain; charset=utf-8" ));
1616 if (res != null && res.result && res.data != null ) {
17- return ResultData (
18- TrendingUtil .htmlToRepo (res.data), true , Code .SUCCESS );
17+ return ResultData (TrendingUtil .htmlToRepo (res.data), true , Code .SUCCESS );
1918 } else {
2019 return res;
2120 }
@@ -44,7 +43,7 @@ class TrendingUtil {
4443 static htmlToRepo (String responseData) {
4544 try {
4645 responseData = responseData.replaceAll (RegExp ('\n ' ), '' );
47- // ignore: empty_catches
46+ // ignore: empty_catches
4847 } catch (e) {}
4948 var repos = [];
5049 var splitWithH3 = responseData.split ('<article' );
@@ -137,14 +136,14 @@ class TrendingUtil {
137136 repo.language = trim (content);
138137 }
139138
140- static parseRepoContributors (repo, htmlContributors) {
139+ static parseRepoContributors (TrendingRepoModel repo, htmlContributors) {
141140 htmlContributors =
142141 parseContentWithNote (htmlContributors, 'Built by' , '<\/ a>' );
143142 var splitWitSemicolon = htmlContributors.split ('\" ' );
144143 if (splitWitSemicolon.length > 1 ) {
145144 repo.contributorsUrl = splitWitSemicolon[1 ];
146145 }
147- var contributors = [];
146+ List < String > ? contributors = [];
148147 for (var i = 0 ; i < splitWitSemicolon.length; i++ ) {
149148 String url = splitWitSemicolon[i];
150149 if (url.contains ('http' )) {
0 commit comments