comment lint and corrections

This commit is contained in:
epi
2020-12-09 07:52:33 -06:00
parent bd836c8b55
commit 3caa8d2ceb
2 changed files with 2 additions and 3 deletions

View File

@@ -180,8 +180,8 @@ async fn get_targets() -> FeroxResult<Vec<String>> {
targets.push(line?);
}
} else if CONFIGURATION.resumed {
// resume-from can't be used with any other flag, making it mutually exclusive from either
// of the other two options
// resume-from can't be used with --url, and --stdin is marked false for every resumed
// scan, making it mutually exclusive from either of the other two options
if let Ok(scans) = SCANNED_URLS.scans.lock() {
for scan in scans.iter() {
// SCANNED_URLS gets deserialized scans added to it at program start if --resume-from

View File

@@ -668,7 +668,6 @@ pub fn resume_scan(filename: &str) -> Configuration {
std::process::exit(1);
});
// let scans: FeroxScans = serde_json::from_value(state.get("scans").unwrap().clone()).unwrap();
if let Some(responses) = state.get("responses") {
if let Some(arr_responses) = responses.as_array() {
for response in arr_responses {