Skip to content

Commit

Permalink
fix invalid path join
Browse files Browse the repository at this point in the history
pathWithSymbols may be undefined and then an exception is thrown from the path.join method.
bug details: #436
  • Loading branch information
dreisel authored Mar 22, 2018
1 parent 7ad2965 commit 92108d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/StripeResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ StripeResource.prototype = {
// Creates a relative resource path with symbols left in (unlike
// createFullPath which takes some data to replace them with). For example it
// might produce: /invoices/{id}
createResourcePathWithSymbols: function(pathWithSymbols) {
createResourcePathWithSymbols: function(pathWithSymbols = '') {
return '/' + path.join(
this.resourcePath,
pathWithSymbols
Expand Down

0 comments on commit 92108d5

Please sign in to comment.