Skip to content
Permalink
Browse files

fix: do not mutate options passedto endpoint methods

  • Loading branch information...
gr2m committed May 4, 2019
1 parent 3db8a00 commit fe51f06d54762553f91075e022e7375be1d37815
Showing with 1 addition and 3 deletions.
  1. +1 −3 plugins/register-endpoints/register-endpoints.js
@@ -62,9 +62,7 @@ function registerEndpoints (octokit, routes) {

function patchForDeprecation (octokit, apiOptions, method, methodName) {
const patchedMethod = (options) => {
if (!options) {
return method(options)
}
options = Object.assign({}, options)

Object.keys(options).forEach(key => {
if (apiOptions.params[key] && apiOptions.params[key].deprecated) {

0 comments on commit fe51f06

Please sign in to comment.
You can’t perform that action at this time.