mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
remove extra var def
This commit is contained in:
parent
18509e6d1a
commit
827cb182f2
1 changed files with 4 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ impl Rules {
|
|||
);
|
||||
for (i, l) in list.iter().enumerate() {
|
||||
let mut items = HashSet::new();
|
||||
let list = if l.contains("://") {
|
||||
for line in if l.contains("://") {
|
||||
let response = reqwest::get(l).await?;
|
||||
let status = response.status();
|
||||
if status.is_success() {
|
||||
|
|
@ -35,8 +35,9 @@ impl Rules {
|
|||
}
|
||||
} else {
|
||||
fs::read_to_string(l).await?
|
||||
};
|
||||
for line in list.lines() {
|
||||
}
|
||||
.lines()
|
||||
{
|
||||
if line.starts_with("/") || line.starts_with("#") || line.is_empty() {
|
||||
continue; // skip comments
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue