small correction in doc + autoformat

This commit is contained in:
Erik Krogh Kristensen
2020-02-24 17:54:29 +01:00
parent b20e8520f6
commit afd6ea2628

View File

@@ -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. * Gets the data-flow node (if it exists) for an options argument for an `exec`-like call.
*/ */
DataFlow::Node getOptionsArg() { DataFlow::Node getOptionsArg() { result = command.getOptionsArg() }
result = command.getOptionsArg()
}
/** /**
* Gets the constant-string parts that are not part of the command itself. * Gets the constant-string parts that are not part of the command itself.
@@ -108,7 +106,7 @@ class UselessCat extends CommandCall {
prop = "encoding" prop = "encoding"
) )
) and ) 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()) not exists(getCallback())
or or