Skip to content

Commit 8f1a359

Browse files
author
Stephan Brandauer
committed
autoformat
1 parent a6d2ecd commit 8f1a359

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Handlebars.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ private module HandlebarsTaintSteps {
4949

5050
/**
5151
* Gets a reference to a parameter of a registered Handlebars helper.
52-
*
52+
*
5353
* ```javascript
54-
* function loudHelper(text) {
54+
* function loudHelper(text) {
5555
* return text.toUpperCase();
5656
* }
5757
*
@@ -61,8 +61,7 @@ private module HandlebarsTaintSteps {
6161
* the `FunctionNode` representing `function loudHelper`, and return its parameter `text`.
6262
*/
6363
private DataFlow::ParameterNode getRegisteredHelperParam(
64-
string helperName, DataFlow::FunctionNode helperFunction,
65-
int paramIndex
64+
string helperName, DataFlow::FunctionNode helperFunction, int paramIndex
6665
) {
6766
exists(DataFlow::CallNode registerHelperCall |
6867
registerHelperCall = any(Handlebars::Handlebars hb).getAMemberCall("registerHelper") and
@@ -72,8 +71,9 @@ private module HandlebarsTaintSteps {
7271
)
7372
}
7473

75-
/** Gets a `call` (which is a block wrapped inside curly braces inside the template) from `templateText`.
76-
*
74+
/**
75+
* Gets a `call` (which is a block wrapped inside curly braces inside the template) from `templateText`.
76+
*
7777
* For example, `getAHelperCallFromTemplate("Hello {{loud customer}}")` will return `"loud customer"`.
7878
*/
7979
bindingset[templateText]

0 commit comments

Comments
 (0)