Skip to content

Commit d90b8ab

Browse files
committed
fix invalid path join
pathWithSymbols may be undefined and then an exception is thrown from the path.join method. bug details: #436
1 parent 7ad2965 commit d90b8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/StripeResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ StripeResource.prototype = {
7272
createResourcePathWithSymbols: function(pathWithSymbols) {
7373
return '/' + path.join(
7474
this.resourcePath,
75-
pathWithSymbols
75+
pathWithSymbols || ''
7676
).replace(/\\/g, '/'); // ugly workaround for Windows
7777
},
7878

0 commit comments

Comments
 (0)