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

Connection#ping: allow no callback, return a responseTime, add tests #146

Merged
merged 1 commit into from
Oct 9, 2015

Conversation

SimonWoolf
Copy link
Member

Fixes #133

@@ -35,6 +35,8 @@ var Connection = (function() {

Connection.prototype.ping = function(callback) {
Logger.logAction(Logger.LOG_MINOR, 'Connection.ping()', '');
if(typeof(callback) !== 'function')
Copy link
Member

Choose a reason for hiding this comment

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

why not just callback = callback || function() {} ?

@paddybyers
Copy link
Member

One comment otherwise LGTM

SimonWoolf added a commit that referenced this pull request Oct 9, 2015
Connection#ping: allow no callback, return a responseTime, add tests
@SimonWoolf SimonWoolf merged commit c20aacb into master Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants