mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Fix associated test
This commit is contained in:
@@ -2,10 +2,10 @@ var express = require('express');
|
||||
var app = express();
|
||||
|
||||
var actions = new Map();
|
||||
actions.put("play", function play(data) {
|
||||
actions.set("play", function play(data) {
|
||||
// ...
|
||||
});
|
||||
actions.put("pause", function pause(data) {
|
||||
actions.set("pause", function pause(data) {
|
||||
// ...
|
||||
});
|
||||
|
||||
@@ -14,4 +14,4 @@ app.get('/perform/:action/:payload', function(req, res) {
|
||||
let action = actions.get(req.params.action);
|
||||
res.end(action(req.params.payload)); // NOT OK, but not flagged [INCONSISTENCY]
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user