mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
small correction in doc + autoformat
This commit is contained in:
@@ -40,9 +40,7 @@ private class CommandCall extends DataFlow::InvokeNode {
|
||||
/**
|
||||
* Gets the data-flow node (if it exists) for an options argument for an `exec`-like call.
|
||||
*/
|
||||
DataFlow::Node getOptionsArg() {
|
||||
result = command.getOptionsArg()
|
||||
}
|
||||
DataFlow::Node getOptionsArg() { result = command.getOptionsArg() }
|
||||
|
||||
/**
|
||||
* Gets the constant-string parts that are not part of the command itself.
|
||||
@@ -108,7 +106,7 @@ class UselessCat extends CommandCall {
|
||||
prop = "encoding"
|
||||
)
|
||||
) and
|
||||
// If there is a callback, then it must either have one or two arguments, or if there is a third argument it must be unused.
|
||||
// If there is a callback, then it must either have one or two parameters, or if there is a third parameter it must be unused.
|
||||
(
|
||||
not exists(getCallback())
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user