Skip to content
Snippets Groups Projects
Commit 91d30dfb authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer Committed by Daniel Gerhardt
Browse files

Add keyword var for explicit variable declaration

Cherry-picked from GH-52.
parent ef7378ee
No related merge requests found
......@@ -9,7 +9,7 @@ var designDoc = {
/* The 'questionValue' contains the points scored with this answer,
* and this could be negative if a wrong answer was given.
* However, we do not want negative values, so we set the lower bound to 0.*/
score = Math.max(doc.questionValue || 0, 0);
var score = Math.max(doc.questionValue || 0, 0);
emit([doc.sessionId, doc.user], {
questionId: doc.questionId,
score: score, piRound: doc.piRound
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment