Parenthesize assignment in if.
This commit is contained in:
parent
f8bfb87e46
commit
1a55bf69aa
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user