Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #67

  • Loading branch information...
commit a5f8afae423ed89fe915941278a7408e583a204a 1 parent 72b9603
@pksunkara authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/octonode/client.js
  2. +1 −1  src/octonode/client.coffee
View
2  lib/octonode/client.js
@@ -93,7 +93,7 @@
if (per_page == null) {
per_page = null;
}
- if (typeof pageOrQuery === 'object') {
+ if ((pageOrQuery != null) && typeof pageOrQuery === 'object') {
query = pageOrQuery;
} else {
query = {
View
2  src/octonode/client.coffee
@@ -65,7 +65,7 @@ class Client
# Github api URL builder
buildUrl: (path = '/', pageOrQuery = null, per_page = null) ->
- if typeof pageOrQuery == 'object'
+ if pageOrQuery? and typeof pageOrQuery == 'object'
query = pageOrQuery
else
query =
Please sign in to comment.
Something went wrong with that request. Please try again.