Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Aug 16, 2024
1 parent 2087764 commit 24a8b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions aderyn_core/src/detect/high/out_of_order_retryable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ impl IssueDetector for OutOfOrderRetryableDetector {
let mut tracker = OutOfOrderRetryableTracker {
number_of_retry_calls: 0,
};
let callgraph =
CallGraph::new(context, &[&(func.into())], CallGraphDirection::Inward)?;
let callgraph = CallGraph::new(context, &[&(func.into())], CallGraphDirection::Inward)?;
callgraph.investigate(context, &mut tracker)?;
if tracker.number_of_retry_calls >= 2 {
capture!(self, context, func);
Expand Down
7 changes: 2 additions & 5 deletions aderyn_core/src/detect/low/function_init_state_vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ impl IssueDetector for FunctionInitializingStateDetector {
let mut tracker =
NonConstantStateVariableReferenceDeclarationTracker::new(context);

let investigator = CallGraph::new(
context,
&[&(func.into())],
CallGraphDirection::Inward,
)?;
let investigator =
CallGraph::new(context, &[&(func.into())], CallGraphDirection::Inward)?;

investigator.investigate(context, &mut tracker)?;

Expand Down

0 comments on commit 24a8b0b

Please sign in to comment.