diff --git a/src/config.js b/src/config.js index 4e31b2d..9731b39 100644 --- a/src/config.js +++ b/src/config.js @@ -52,7 +52,7 @@ export class Config { * @return {Rest|null} */ getEndpoint(name) { - if (typeof name === 'undefined') { + if (!name) { return this.defaultEndpoint || null; }