cleanRelayUrls function

List<String> cleanRelayUrls(
  1. List<String> urls
)

Implementation

List<String> cleanRelayUrls(List<String> urls) {
  final List<String> cleanUrls = [];
  for (var url in urls) {
    String? cleanUrl = cleanRelayUrl(url);
    if (cleanUrl == null) {
      continue;
    }
    cleanUrls.add(cleanUrl);
  }
  return cleanUrls;
}