Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

chore: dont retain errors #2332

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions ethers-solc/src/artifacts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1489,12 +1489,6 @@ impl CompilerOutput {
let files: HashSet<_> = files.into_iter().map(|s| s.to_lowercase()).collect();
self.contracts.retain(|f, _| files.contains(f.to_lowercase().as_str()));
self.sources.retain(|f, _| files.contains(f.to_lowercase().as_str()));
self.errors.retain(|err| {
err.source_location
.as_ref()
.map(|s| files.contains(s.file.to_lowercase().as_str()))
.unwrap_or(true)
});
}

pub fn merge(&mut self, other: CompilerOutput) {
Expand Down