Skip to content

more enchantments#2

Open
dysbulic wants to merge 15 commits intoShareIt-project:masterfrom
dysbulic:master
Open

more enchantments#2
dysbulic wants to merge 15 commits intoShareIt-project:masterfrom
dysbulic:master

Conversation

@dysbulic
Copy link
Contributor

@dysbulic dysbulic commented Jul 3, 2013

Added a couple things to the documentation and cleaned up the code a little.

Copy link
Member

Choose a reason for hiding this comment

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

If 'configuration.room' is a falsy value (zero, false, empty list...) it will return false and then define room as 'default room', that's wrong. It's better to check explicitly that 'room' is not defined on the configuration object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was unaware that those options were allowed falsy values. I can revert the changes.

Copy link
Member

Choose a reason for hiding this comment

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

It could be whatever. Depending on the application, a room '0' would be allowed... so better be on the safe side.

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.

2 participants