mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -12,7 +12,7 @@ actions.put("pause", function pause(data) {
|
||||
app.get('/perform/:action/:payload', function(req, res) {
|
||||
let action = actions.get(req.params.action);
|
||||
if (typeof action === 'function') {
|
||||
res.end(action(req.params.payload)); // GOOD: `action` is either the `play` or the `pause` function from above
|
||||
res.end(action(req.params.payload)); // OK - `action` is either the `play` or the `pause` function from above
|
||||
} else {
|
||||
res.end("Unsupported action.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user