Skip to content

Commit

Permalink
format(tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermondev committed Sep 22, 2023
1 parent 879f0c1 commit d5a94a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/sexurity-discord/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,3 @@ fn extract_webhook_info(url: &str) -> Option<(u64, &str)> {
None
}
}

4 changes: 2 additions & 2 deletions src/sexurity-discord/src/subscriptions/reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ fn build_embed_data(diff: Vec<models::ReportData>) -> Option<Embed> {
.build();

return Some(embed);
}
}

// else if old.id.is_none() {
// // new report
// let mut user_field = format!(
Expand Down
5 changes: 4 additions & 1 deletion src/sexurity-poller/src/polls/reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ pub fn run_poll(config: &PollConfiguration) -> Result<(), Box<dyn std::error::Er
let last_report_data = get_old_reports_data(&mut redis_conn);
let report_data = get_reports_data(&config.team_handle, &config.hackerone);
if report_data.is_err() {
error!("reports poll event: error getting reports data: {}", report_data.err().unwrap());
error!(
"reports poll event: error getting reports data: {}",
report_data.err().unwrap()
);
return Ok(());
}

Expand Down
5 changes: 4 additions & 1 deletion src/sexurity-poller/src/polls/reputation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ pub fn run_poll(config: &PollConfiguration) -> Result<(), Box<dyn std::error::Er
let mut last_rep_data = get_old_reputation_data(&mut redis_conn);
let rep_data = get_reputation_data(&config.team_handle, &config.hackerone, None, None);
if rep_data.is_err() {
error!("reputation poll event: error getting reputation data: {}", rep_data.err().unwrap());
error!(
"reputation poll event: error getting reputation data: {}",
rep_data.err().unwrap()
);
return Ok(());
}

Expand Down

0 comments on commit d5a94a9

Please sign in to comment.