Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #210 from GeorgePhillips/master
Browse files Browse the repository at this point in the history
Fixed reference to typeof hash
  • Loading branch information
pksunkara committed Oct 8, 2015
2 parents 12160c2 + c23a708 commit 3a5d4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/octonode/repo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/octonode/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Repo
if !cb? and cbOrOptions
cb = cbOrOptions
param = {message: message, parents: parents, tree: tree}
else if typeof cbOrOptions is 'hash'
else if typeof cbOrOptions is 'object'
param = cbOrOptions
param['message'] = message
param['parents'] = parents
Expand Down Expand Up @@ -268,7 +268,7 @@ class Repo
cbOrBranchOrOptions = 'master'
if typeof cbOrBranchOrOptions is 'string'
param = {branch: cbOrBranchOrOptions, message: message, content: content}
else if typeof cbOrBranchOrOptions is 'hash'
else if typeof cbOrBranchOrOptions is 'object'
param = cbOrBranchOrOptions
param['message'] = message
param['content'] = content
Expand Down

0 comments on commit 3a5d4c2

Please sign in to comment.