Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(config): Be more permissive when looking for the default endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Jan 17, 2016
1 parent 231b451 commit 5b0d0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Expand Up @@ -52,7 +52,7 @@ export class Config {
* @return {Rest|null}
*/
getEndpoint(name) {
if (typeof name === 'undefined') {
if (!name) {
return this.defaultEndpoint || null;
}

Expand Down

0 comments on commit 5b0d0f5

Please sign in to comment.