GitLab wird am Donnerstag, den 27. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

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

Fixed code style errors and warnings.

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