Skip to content

Conversation

thamaranth
Copy link
Contributor

Fixes issue #1083

if (hex.trap) {
if (hex.trap.type == "mud-bath") {
if (hex.trap.type == "mud-bath") {
G.UI.abilitiesButtons[0].changeState('noclick')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this lacking a semicolon on purpose?

@thamaranth
Copy link
Contributor Author

It's not necessary. It can be added.

@DreadKnight
Copy link
Member

@thamaranth Seen videos about coders not using them in JS, but there are some scenarios where you can bump into issues. Please add, as a part of coding consistency.

@ktiedt
Copy link
Collaborator

ktiedt commented Apr 29, 2017

while it is true that trailing semi-colons are not necessary, even Brendan Eich, who created JS and ASI (automatic semicolon insertion) regrets that decision to a degree ;)

https://brendaneich.com/2012/04/the-infernal-semicolon/

Always best to include them, especially in projects that concatenate files.

@thamaranth
Copy link
Contributor Author

Done

@DreadKnight DreadKnight merged commit 12839f5 into FreezingMoon:master May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants