mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
[pitboss] sweep after phase 07: 1 deferred items resolved
This commit is contained in:
parent
a32075a756
commit
59d627cb22
1 changed files with 4 additions and 17 deletions
|
|
@ -53,30 +53,17 @@ impl FrameworkAdapter for XpathJavaAdapter {
|
|||
let matches_call = super::any_callee_matches(summary, callee_is_xpath_eval);
|
||||
let matches_source = source_imports_xpath(file_bytes);
|
||||
if matches_call && matches_source {
|
||||
return Some(FrameworkBinding {
|
||||
Some(FrameworkBinding {
|
||||
adapter: ADAPTER_NAME.to_owned(),
|
||||
kind: EntryKind::Function,
|
||||
route: None,
|
||||
request_params: Vec::new(),
|
||||
response_writer: None,
|
||||
middleware: Vec::new(),
|
||||
});
|
||||
})
|
||||
} else {
|
||||
None
|
||||
}
|
||||
if matches_source
|
||||
&& file_bytes
|
||||
.windows(b".evaluate(".len())
|
||||
.any(|w| w == b".evaluate(")
|
||||
{
|
||||
return Some(FrameworkBinding {
|
||||
adapter: ADAPTER_NAME.to_owned(),
|
||||
kind: EntryKind::Function,
|
||||
route: None,
|
||||
request_params: Vec::new(),
|
||||
response_writer: None,
|
||||
middleware: Vec::new(),
|
||||
});
|
||||
}
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue