access control: strip whitespace in hashes, ignore empty lines

This commit is contained in:
Joakim Frostegård 2022-07-26 23:17:30 +02:00
parent f909febf17
commit 6bdb50df8a

View file

@ -64,6 +64,11 @@ impl AccessList {
for line in reader.lines() {
let line = line?;
let line = line.trim();
if line.is_empty() {
continue;
}
new_list
.insert_from_line(&line)