Skip to content

Commit 264fab4

Browse files
committed
Oops, wrong use of if in coffee-script
1 parent 9ad77df commit 264fab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/rajinikanth.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ module.exports = (robot) ->
2828
$ = cheerio.load(body)
2929
fact = $(".fact").find(".ftext").text()
3030

31-
fact = fact.replace /raji?ni(kanth?)?/ig, user if !!user
31+
if !!user
32+
fact = fact.replace /raji?ni(kanth?)?/ig, user
3233
msg.send fact

0 commit comments

Comments
 (0)