Skip to content

Commit

Permalink
fix: octokit.apps.getInstallations() does not throw TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 19, 2018
1 parent 15c109e commit e542799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/endpoint-methods/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const validate = require('./validate')

function apiMethod (octokit, endpointDefaults, endpointParams, options, callback) {
// Do not alter passed options (#786)
options = clone(options)
options = clone(options) || {}

// lowercase header names (#760)
options.headers = mapKeys(options.headers, (value, key) => key.toLowerCase())
Expand Down

0 comments on commit e542799

Please sign in to comment.