Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce7ba258 authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

feat:5629: clean commented code.

parent f38fcf84
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ function parseHostToHostnames(hostText) {
  return hostText
    .split("\n")
    .filter(line => line.startsWith("0.0.0.0"))
//    .filter(line => { return !line.startsWith("#") && line != ""})
    .map(line => line.split(" ")[1])
    .filter(it => it != "")
}
@@ -17,9 +16,8 @@ function fetchHostnamesList(uri) {
}

exports.getHostnames = () => Promise.all([
// Adaway is included in the setvenblack list
  // Adaway is included in the setvenblack list, so we don't fetch it anymore.
  // https://github.com/StevenBlack/hosts/blob/master/readme.md#sources-of-hosts-data-unified-in-this-variant
//  fetchHostnamesList(adawayUri),
  fetchHostnamesList(stevenblackUri)
]).then(hostnameLists => {
  console.log(hostnameLists.length + " hostnames lists with each : " + hostnameLists.map(it => it.length + " hostnames").join(", "))