Skip to content

Commit 794b962

Browse files
committed
Bug Fix in listPublicRepositories
1 parent a58f747 commit 794b962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/common/repos_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class RepositoriesService extends Service {
6363
.listen((http.Response response) {
6464
var list = JSON.decode(response.body);
6565
var repos = new List.from(
66-
list.map((it) => Repository.fromJSON(_github, it)));
66+
list.map((it) => Repository.fromJSON(it)));
6767
for (var repo in repos) controller.add(repo);
6868
});
6969

test/experiment/public_repos.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "package:github/server.dart";
33
void main() {
44
var github = createGitHubClient();
55

6-
github.repositories.listPublicRepositories(limit: 10).listen((repo) {
6+
github.repositories.listPublicRepositories(limit: 50).listen((repo) {
77
print("-> ${repo.fullName}");
88
}).onDone(() => github.dispose());
99
}

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