Commit 669e7cee authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Fixed code style errors and warnings.

parent 0ea10301
......@@ -101,8 +101,8 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
{
hasAnswers: function (numAnswers) {
if (!!numAnswers) {
return numAnswers.reduce(function(ro, rt) {
return ro + rt;
return numAnswers.reduce(function (ro, rt) {
return ro + rt;
}, 0) > 0;
}
......@@ -400,8 +400,8 @@ Ext.define('ARSnova.view.speaker.AudienceQuestionPanel', {
var numAnswers = Ext.decode(response.responseText);
questionRecord.set('numAnswers', numAnswers);
promise.resolve({
hasAnswers: numAnswers.reduce(function(ro, rt) {
return ro + rt;
hasAnswers: numAnswers.reduce(function (ro, rt) {
return ro + rt;
}, 0) > 0
});
},
......
Markdown is supported
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