Parenthesize assignment in if.

This commit is contained in:
ccd0 2015-11-14 13:59:23 -08:00
parent f8bfb87e46
commit 1a55bf69aa

View File

@ -56,7 +56,7 @@ Report =
archive: ->
Redirect.init()
return unless url = Redirect.to 'report', {boardID: g.BOARD.ID, postID: Report.postID}
return unless (url = Redirect.to 'report', {boardID: g.BOARD.ID, postID: Report.postID})
if (message = $ 'h3') and /Report submitted!/.test(message.textContent)
if location.hash is '#redirect'