Skip to content

Commit bd4df20

Browse files
committed
Improve code by technicalpickles good advice
1 parent 4a82b76 commit bd4df20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/rsstodolist.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = (robot) ->
5353
description = descriptionNode.childNodes[0].nodeValue if descriptionNode.childNodes.length == 1
5454

5555
reply += " - #{title},"
56-
reply += " " + description if description != undefined
56+
reply += " #{description}" if description?
5757
reply += " [#{link}]\n"
5858
catch err
5959
msg.reply err

0 commit comments

Comments
 (0)