Skip to content

Commit

Permalink
fix: invalid instances are not filtered out
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Feb 17, 2024
1 parent c10e306 commit d901745
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ class PipedClient {
});
}

return instances.map(PipedInstance.fromJson).toList();
return instances
.map(PipedInstance.fromJson)
.where((instance) => instance.apiUrl.startsWith("http"))
.toList();
}
}

0 comments on commit d901745

Please sign in to comment.