Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffner committed Jun 15, 2017
1 parent 161d046 commit ce3f9bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lecturer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.officeHours = function(client, query, done) {
const response = data.length === 1 ?
`${person.name} hat am ${hours} Sprechstunde.` :
`${person.name}: ${hours}`;

return i === 0 ? text + response : `${text}, ${response}`;
}, '');

Expand Down

0 comments on commit ce3f9bc

Please sign in to comment.