Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard #15

Closed
wants to merge 0 commits into from
Closed

Standard #15

wants to merge 0 commits into from

Conversation

perguth
Copy link
Contributor

@perguth perguth commented Jan 4, 2016

No description provided.

@@ -44,23 +44,31 @@ if (cmd === 'listen') {
server.listen(argv.port, argv.host, function () {
console.log('signalhub listening on port %d', server.address().port)
})
return
process.exit(0)
Copy link
Owner

Choose a reason for hiding this comment

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

this unfortunately won't work since that kills the process and therefor the server :(

@max-mapper
Copy link
Collaborator

maybe just wrap that code in a function so standard doesnt complain about it?

@feross
Copy link
Collaborator

feross commented Jan 5, 2016

Not supporting return at the top level is an unfortunate eslint artifact. Sorry guys :(

perguth added a commit to perguth/signalhub that referenced this pull request Jan 5, 2016
@perguth
Copy link
Contributor Author

perguth commented Jan 5, 2016

Yes, looks better @maxogden!

@perguth
Copy link
Contributor Author

perguth commented Jun 15, 2016

Whops. Closed by accident. But IIFE sucked anyway^^

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.

4 participants