Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Sep 23, 2024
1 parent d1b4b1c commit 5970258
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 31 deletions.
17 changes: 6 additions & 11 deletions aderyn_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ pub fn get_report(
};
}

for key in src_filepaths {
if let Entry::Vacant(v) = grouped_instances_context.entry(key) {
v.insert(Default::default());
}
}

for (key, value) in grouped_instances_context {
match grouped_instances.entry(key.clone()) {
Entry::Vacant(v) => {
Expand All @@ -200,17 +206,6 @@ pub fn get_report(
}
}

for key in src_filepaths {
match grouped_instances.entry(key) {
Entry::Vacant(v) => {
v.insert(Default::default());
}
Entry::Occupied(mut o) => {
o.get_mut().push(Default::default());
}
}
}

detector_hints.extend(hints);
}

Expand Down
6 changes: 0 additions & 6 deletions reports/report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 201 additions & 3 deletions reports/report.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions reports/report.sarif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5970258

Please sign in to comment.