Refactor readPacmanConfig
removed one indentation
This commit is contained in:
parent
42fe907ec8
commit
25004cd83b
@ -36,7 +36,10 @@ public partial class PacserverUtils {
|
||||
string cachePath = pathsToDetermine[0];
|
||||
string dbPath = pathsToDetermine[1];
|
||||
|
||||
if (line.Contains(cachePath) || line.Contains(dbPath)) {
|
||||
if (!line.Contains(cachePath) && !line.Contains(dbPath)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Match match = CacheDirOrDBPathRegex().Match(line);
|
||||
|
||||
if(!match.Success) {
|
||||
@ -52,7 +55,6 @@ public partial class PacserverUtils {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> packageNamesAndVersion = new List<String>();
|
||||
[GeneratedRegex(@".+\.pkg\.tar\.zst$", RegexOptions.NonBacktracking)]
|
||||
|
Loading…
Reference in New Issue
Block a user